Removed dict.iteritems() in modules. (#18859)

This is for py3 compatibility, addressed in #18506
This commit is contained in:
Andrea Tartaglia
2016-12-12 23:16:23 +00:00
committed by Toshio Kuratomi
parent 4b27d08643
commit ef391a11ec
99 changed files with 251 additions and 250 deletions

View File

@@ -227,7 +227,7 @@ class BigIpGtmFactsCommon(object):
result = dict()
for attribute in self.attributes_to_remove:
parameters.pop(attribute, None)
for key, val in parameters.iteritems():
for key, val in parameters.items():
result[key] = str(val)
return result
@@ -276,7 +276,7 @@ class BigIpGtmFactsPools(BigIpGtmFactsCommon):
def get_facts_with_types(self):
result = []
for key, type in self.gtm_types.iteritems():
for key, type in self.gtm_types.items():
facts = self.get_all_facts_by_type(key, type)
if facts:
result.append(facts)
@@ -330,7 +330,7 @@ class BigIpGtmFactsWideIps(BigIpGtmFactsCommon):
def get_facts_with_types(self):
result = []
for key, type in self.gtm_types.iteritems():
for key, type in self.gtm_types.items():
facts = self.get_all_facts_by_type(key, type)
if facts:
result.append(facts)