aboutsummaryrefslogtreecommitdiff
path: root/jobs/PeerChecker.py
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2016-01-31 14:37:22 -0500
committerTom Ritter <tom@ritter.vg>2016-01-31 14:37:22 -0500
commit618c3606a1f5f230124a937201e53589dbab1260 (patch)
tree8eed5b8222409e7f91de99e525c8eeea3a19b953 /jobs/PeerChecker.py
parent3bea3bae59e7404b286b5bf97a6270270bfadd6c (diff)
Correcting a few small errors
Diffstat (limited to 'jobs/PeerChecker.py')
-rwxr-xr-xjobs/PeerChecker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/PeerChecker.py b/jobs/PeerChecker.py
index 8211472..12ce8d8 100755
--- a/jobs/PeerChecker.py
+++ b/jobs/PeerChecker.py
@@ -8,6 +8,7 @@ import imaplib
import requests
import JobBase
+import JobSpawner
class PeerChecker(JobSpawner.JobSpawner):
class IndividualPeerChecker(JobBase.JobBase):
@@ -51,8 +52,7 @@ class PeerChecker(JobSpawner.JobSpawner):
self.subject = self.checkurl + " is not responding."
self.body = str(e)
return peerOK
-
- return peerOK:
+
def onFailure(self):
return self.sendEmail(self.subject, self.body, self.notificationAddress)
def onStateChangeSuccess(self):