mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Removed dict.iteritems() in modules. (#18859)
This is for py3 compatibility, addressed in #18506
This commit is contained in:
committed by
Toshio Kuratomi
parent
4b27d08643
commit
ef391a11ec
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user