fix: checks wasn't idempotent
This commit is contained in:
parent
af0452b5f7
commit
d27714948f
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ class SensuCheck:
|
|||
return {}
|
||||
|
||||
def labels_has_changed(self, new_labels, old_labels):
|
||||
if old_labels is None or len(new_labels) != len(old_labels):
|
||||
if not old_labels and not new_labels:
|
||||
return False
|
||||
|
||||
if len(new_labels) != len(old_labels):
|
||||
return True
|
||||
|
||||
for old_label, old_value in old_labels.iteritems():
|
||||
|
|
Loading…
Reference in a new issue