Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Closes-Issue: PRODX-13225
Change-Id: Ia59a23a36ebb8548a20e894000f7342c73012eac
(cherry picked from commit a318f6d77c0b354b4aee2fe9d7651d595adcf38e)
diff --git a/barbican_tempest_plugin/tests/scenario/manager.py b/barbican_tempest_plugin/tests/scenario/manager.py
index 4a141ab..615e08b 100644
--- a/barbican_tempest_plugin/tests/scenario/manager.py
+++ b/barbican_tempest_plugin/tests/scenario/manager.py
@@ -396,8 +396,9 @@
addresses = (server['addresses'][network['name']]
if network else [])
for address in addresses:
- if (address['version'] == CONF.validation.ip_version_for_ssh
- and address['OS-EXT-IPS:type'] == 'fixed'):
+ ip_version_for_ssh = CONF.validation.ip_version_for_ssh
+ if (address['version'] == ip_version_for_ssh and
+ address['OS-EXT-IPS:type'] == 'fixed'):
return address['addr']
raise exceptions.ServerUnreachable(server_id=server['id'])
else: