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:
jolie
2017-02-14 17:56:04 +08:00
parent 8c81812610
commit a52dbabcc0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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