mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user