summaryrefslogtreecommitdiff
path: root/healthcheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'healthcheck.py')
-rw-r--r--healthcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthcheck.py b/healthcheck.py
index 0892db1..0359e4b 100644
--- a/healthcheck.py
+++ b/healthcheck.py
@@ -164,7 +164,7 @@ class HealthCheck(object):
files = glob.glob("%s/%s" % (self.script_directory, filename))
if len(files) == 1:
os.system(files[0])
- else:
+ elif (len(files) > 1):
self.logmsg("more than one matching script for stage change %s to %s" % (str(self.last_state), str(new_state)))
else:
self.logmsg("Unexpected stage change from %s to %s" % (str(self.last_state), str(new_state)))