commit | f888d7ff2a81660f396460c7ade00ce85a60b5c9 | [log] [tgz] |
---|---|---|
author | Goutham Pacha Ravi <gouthampravi@gmail.com> | Mon May 11 15:36:42 2020 -0700 |
committer | Goutham Pacha Ravi <gouthampravi@gmail.com> | Mon May 11 15:36:42 2020 -0700 |
tree | 8de3c7661493a207b995376a92d964714bce685e | |
parent | 7a8f5efb88aa1111dc1d176e12e3e8b989f0d6de [diff] |
Fix dict.values usage In python3, dict.values() doesn't return a list, but rather returns a view that can be iterated upon. https://www.python.org/dev/peps/pep-3106/ Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com> Change-Id: If274f85049f91243934f9e649fce86c49dbbbf1b
diff --git a/manila_tempest_tests/tests/scenario/manager_share.py b/manila_tempest_tests/tests/scenario/manager_share.py index da8a8e5..4593e9a 100644 --- a/manila_tempest_tests/tests/scenario/manager_share.py +++ b/manila_tempest_tests/tests/scenario/manager_share.py
@@ -291,7 +291,7 @@ if instance and not ip: try: net_addresses = instance['addresses'] - first_address = net_addresses.values()[0][0] + first_address = list(net_addresses.values())[0][0] ip = first_address['addr'] except Exception: LOG.debug("Instance has no valid IP address: %s", instance)