mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Removed dict.iteritems() in modules. (#18859)
This is for py3 compatibility, addressed in #18506
This commit is contained in:
parent
4b27d08643
commit
ef391a11ec
99 changed files with 251 additions and 250 deletions
|
@ -594,7 +594,7 @@ class PyVmomiHelper(object):
|
|||
mac = device.macAddress
|
||||
ips = list(device.ipAddress)
|
||||
netDict[mac] = ips
|
||||
for k,v in netDict.iteritems():
|
||||
for k,v in netDict.items():
|
||||
for ipaddress in v:
|
||||
if ipaddress:
|
||||
if '::' in ipaddress:
|
||||
|
@ -979,7 +979,7 @@ class PyVmomiHelper(object):
|
|||
timeout=10, headers=None)
|
||||
|
||||
# save all of the transfer data
|
||||
for k,v in info.iteritems():
|
||||
for k,v in info.items():
|
||||
result[k] = v
|
||||
|
||||
# exit early if xfer failed
|
||||
|
@ -1045,7 +1045,7 @@ class PyVmomiHelper(object):
|
|||
result['msg'] = str(rsp.read())
|
||||
|
||||
# save all of the transfer data
|
||||
for k,v in info.iteritems():
|
||||
for k,v in info.items():
|
||||
result[k] = v
|
||||
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue