summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--healthcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthcheck.py b/healthcheck.py
index 498d785..574844c 100644
--- a/healthcheck.py
+++ b/healthcheck.py
@@ -192,7 +192,7 @@ class HealthCheck(object):
elif (self.last_state == States.Failed):
if (new_state == States.Maintenance or new_state == States.Frozen):
valid_state = True
- elif (self.last_state == States.Maintenance or last_state == States.Frozen):
+ elif (self.last_state == States.Maintenance or self.last_state == States.Frozen):
if (new_state == States.Passive):
valid_state = True