aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-06-26 17:44:47 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2017-06-26 22:46:21 +0200
commitd7fc6fb2603beb6fc4e8be498763459a33900e26 (patch)
treef61a0657b7899a756f3e185fb70987f469e93709 /functest/utils
parent6efef3438c236ed0e522809c0c9acce5f0c81374 (diff)
Fix floating ips issue in openstack_clean
floatingips is a list of dictionaries where the attributes are a bit different than in the previous implementation. Change-Id: I8e8429b1819bba35a4a829f274c60b77ab2eea7e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'functest/utils')
-rwxr-xr-xfunctest/utils/openstack_clean.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/utils/openstack_clean.py b/functest/utils/openstack_clean.py
index b5167893..e88245d6 100755
--- a/functest/utils/openstack_clean.py
+++ b/functest/utils/openstack_clean.py
@@ -148,8 +148,8 @@ def remove_floatingips(neutron_client, default_floatingips):
init_len = len(floatingips)
deleted = 0
for fip in floatingips:
- fip_id = getattr(fip, 'id')
- fip_ip = getattr(fip, 'ip')
+ fip_id = fip['id']
+ fip_ip = fip['floating_ip_address']
logger.debug("'%s', ID=%s " % (fip_ip, fip_id))
if (fip_id not in default_floatingips and
fip_ip not in default_floatingips.values()):