diff --git a/library/sensugo_asset.py b/library/sensugo_asset.py index a203fe5..051729a 100644 --- a/library/sensugo_asset.py +++ b/library/sensugo_asset.py @@ -21,7 +21,7 @@ class SensuAsset: } def has_changed(self, options): - for option, value in self.options.iteritems(): + for option, value in self.options.items(): if (options[option] or value) and options[option] != value: return True diff --git a/library/sensugo_check.py b/library/sensugo_check.py index 0b3b9a1..1f17022 100644 --- a/library/sensugo_check.py +++ b/library/sensugo_check.py @@ -26,7 +26,7 @@ class SensuCheck: if len(new_labels) != len(old_labels): return True - for old_label, old_value in old_labels.iteritems(): + for old_label, old_value in old_labels.items(): if old_label in new_labels and new_labels[old_label] == old_value: continue return True @@ -39,7 +39,7 @@ class SensuCheck: return True data.pop('metadata') - for option, value in data.iteritems(): + for option, value in data.items(): if not option in options: if value: return True diff --git a/library/sensugo_cluster_role.py b/library/sensugo_cluster_role.py index f24d7e8..d211c11 100644 --- a/library/sensugo_cluster_role.py +++ b/library/sensugo_cluster_role.py @@ -22,14 +22,14 @@ class SensuClusterRole: return True for i in range(0, len(self.options['rules'])): - for rule, value in self.options['rules'][i].iteritems(): + for rule, value in self.options['rules'][i].items(): if not rule in options['rules'][i]: if value: return True elif options['rules'][i][rule] != value: return True - for rule, value in options['rules'][i].iteritems(): + for rule, value in options['rules'][i].items(): if not rule in self.options['rules'][i]: if value: return True diff --git a/library/sensugo_filter.py b/library/sensugo_filter.py index 80308cc..576a587 100644 --- a/library/sensugo_filter.py +++ b/library/sensugo_filter.py @@ -18,7 +18,7 @@ class SensuFilter: self.options.pop('metadata') def has_changed(self, options): - for option, value in self.options.iteritems(): + for option, value in self.options.items(): if not option in options: if value: return True diff --git a/library/sensugo_handler.py b/library/sensugo_handler.py index a41b506..dc2a049 100644 --- a/library/sensugo_handler.py +++ b/library/sensugo_handler.py @@ -18,7 +18,7 @@ class SensuHandler: self.options.pop('metadata') def has_changed(self, options): - for option, value in self.options.iteritems(): + for option, value in self.options.items(): if not option in options: if value: return True diff --git a/library/sensugo_mutator.py b/library/sensugo_mutator.py index 3477591..a97b2b3 100644 --- a/library/sensugo_mutator.py +++ b/library/sensugo_mutator.py @@ -18,7 +18,7 @@ class SensuMutator: self.options.pop('metadata') def has_changed(self, options): - for option, value in self.options.iteritems(): + for option, value in self.options.items(): if not option in options: if value: return True diff --git a/library/sensugo_user.py b/library/sensugo_user.py index bcc1a38..51f9ed4 100644 --- a/library/sensugo_user.py +++ b/library/sensugo_user.py @@ -21,7 +21,7 @@ class SensuUser: pass def has_changed(self, options): - for option, value in self.options.iteritems(): + for option, value in self.options.items(): if options[option] != value: return True