If statement wasn't checking for None correctly, which made failures "pass" when they shouldn't have.

This commit is contained in:
crucial7 2015-09-11 13:24:05 -04:00
parent befb85b3e0
commit 8f41505411

View File

@ -626,7 +626,7 @@ class GraphiteStatusCheck(StatusCheck):
raise Exception(u'Check type %s not supported' %
self.check_type)
if failure_value:
if not failure_value is None:
failures.append(failure_value)
failed = True