1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Replaced iterkeys with 'for key in dict' for #18507 (#18538)

This commit is contained in:
Andrea Tartaglia 2016-11-21 15:18:52 +00:00 committed by Toshio Kuratomi
parent d27e007fb1
commit 62697ad77f

View file

@ -51,7 +51,7 @@ class LookupModule(LookupBase):
# the registered result was completely skipped
return []
elementlist = []
for key in terms[0].iterkeys():
for key in terms[0]:
elementlist.append(terms[0][key])
else:
elementlist = terms[0]