Replace six.itervalues with dict.values()
As mentioned in [1], we should avoid using six.itervalues. We can use dict.values instead. [1]https://wiki.openstack.org/wiki/Python3 Change-Id: I0e6319adb8c84b88df0240cc0a5e8490d9352dd1
This commit is contained in:
@@ -997,7 +997,7 @@ class ClusterRun(command.Command):
|
||||
"network.") % {'node': node_id}
|
||||
return
|
||||
else:
|
||||
addresses = list(six.itervalues(addr))[0]
|
||||
addresses = list(addr.values())[0]
|
||||
|
||||
# Select the address in the selected network.
|
||||
# If the extension is not present, we assume the address to be
|
||||
|
||||
@@ -632,7 +632,7 @@ def _run_script(node_id, addr, net, addr_type, port, user, ipv6, identity_file,
|
||||
"network.") % {'node': node_id}
|
||||
return
|
||||
else:
|
||||
addresses = list(six.itervalues(addr))[0]
|
||||
addresses = list(addr.values())[0]
|
||||
|
||||
# Select the address in the selected network.
|
||||
# If the extension is not present, we assume the address to be floating.
|
||||
|
||||
Reference in New Issue
Block a user