Fix KeyError

This commit is contained in:
David Buxton 2015-09-01 18:50:28 -04:00
parent cd34b45e27
commit d0c709375d

View File

@ -619,7 +619,7 @@ class GraphiteStatusCheck(StatusCheck):
if failed:
failure_value = s['max']
elif self.check_type == '==':
failed = float(self.value) in s['all_values']
failed = float(self.value) in s['values']
if failed:
failure_value = float(self.value)
else: