summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Colmer <philip.colmer@linaro.org>2014-01-22 14:21:00 +0000
committerPhilip Colmer <philip.colmer@linaro.org>2014-01-22 14:21:00 +0000
commit0ae334fe2e13ccc3557c7d1b0fcafbc73d14a1e4 (patch)
tree7dcd38d1715ac7a7ecd5891bd918bb56ab98b665
parentaa1d43b09683e69c7d3625ad27e8e6537a588690 (diff)
downloadlinaro-healthcheck-0ae334fe2e13ccc3557c7d1b0fcafbc73d14a1e4.tar.gz
Fixed error in hc script
-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