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

@ -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