From ec7c81c210509a7cc19b9582909a45ab4d9f5acb Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Tue, 3 Jul 2007 19:58:34 +0000 Subject: [PATCH] + use the emailViaRT() for email rather than standard email --- policy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.47.0