From 4426633a8120926f05ee8818c22d962f76f99a69 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 14 Sep 2016 11:59:16 -0500 Subject: Add a new nomail commandline option for debugging --- jobs/EmailChecker.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jobs/EmailChecker.py') diff --git a/jobs/EmailChecker.py b/jobs/EmailChecker.py index 939d5b8..818600d 100755 --- a/jobs/EmailChecker.py +++ b/jobs/EmailChecker.py @@ -15,6 +15,10 @@ class EmailChecker(JobBase.JobBase): def notifyOnFailureEvery(self): return JobBase.JobFailureNotificationFrequency.EVERYTIME def execute(self): + if self.config.getboolean('email', 'nomail'): + logging.debug("Pretending the EmailChecker job succeeded.") + return True + USER = self.config.get('email', 'user') PASS = self.config.get('email', 'pass') -- cgit v1.2.3