diff options
author | Tom <tom@ritter.vg> | 2016-09-14 11:59:16 -0500 |
---|---|---|
committer | Tom <tom@ritter.vg> | 2016-09-14 11:59:16 -0500 |
commit | 4426633a8120926f05ee8818c22d962f76f99a69 (patch) | |
tree | a442c837ad2689ef1e53f9bffc23095256704fb0 /jobs/EmailChecker.py | |
parent | 407bcc112e1a0eabe8c35076210519eed9607804 (diff) |
Add a new nomail commandline option for debugging
Diffstat (limited to 'jobs/EmailChecker.py')
-rwxr-xr-x | jobs/EmailChecker.py | 4 |
1 files changed, 4 insertions, 0 deletions
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') |