X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=policy.py;fp=policy.py;h=309e03b9c4960e74957de9e90c3f5d8be3d3dd1a;hb=ec7c81c210509a7cc19b9582909a45ab4d9f5acb;hp=b3b986ad3b69ad7739eceaed4fa87fe4db1842d1;hpb=97e06c5640ad0fe58df83feee8637b7e6edcd093;p=monitor.git diff --git a/policy.py b/policy.py index b3b986a..309e03b 100644 --- a/policy.py +++ b/policy.py @@ -3,7 +3,7 @@ # # Faiyaz Ahmed # -# $Id: policy.py,v 1.13 2007/05/16 01:53:46 faiyaza Exp $ +# $Id: policy.py,v 1.14 2007/06/29 12:42:22 soltesz Exp $ # # Policy Engine. @@ -243,7 +243,7 @@ class Policy(Thread): try: subject = message[0] % args body = message[1] % args - mailer.email(subject, body, contacts) + mailer.emailViaRT(subject, body, contacts) except Exception, err: print "exception on message:" print message @@ -464,7 +464,7 @@ class Policy(Thread): # err, this can be used as a counter of some kind.. # but otherwise, no diagnosis is necessary, return None, implies that # it gets skipped. - print "DIAG: %20s : %-40s ticket %d" % \ + print "DIAG: %20s : %-40s ticket %s" % \ (loginbase, nodename, rec_node['ticket_id']) elif "down" in buckets: