Fix python3 dict values breakage

Change-Id: I18c4a12388639d222557d07f8095c3555c29eaa3
This commit is contained in:
Rocky 2018-04-10 17:37:16 +10:00 committed by Yushiro FURUKAWA
parent ce626773ab
commit 87442ec2d0
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ class TestFWaaS(base.FWaaSScenarioTest):
security_group=security_group)
private_key = keys['private_key']
server_floating_ip = self.create_floating_ip(server, public_network_id)
fixed_ip = server['addresses'].values()[0][0]['addr']
fixed_ip = list(server['addresses'].values())[0][0]['addr']
floating_ip = server_floating_ip['floating_ip_address']
return fixed_ip, floating_ip, private_key, router

View File

@ -140,7 +140,7 @@ class TestFWaaS_v2(base.FWaaSScenarioTest_V2):
network, security_group=security_group)
private_key = keys['private_key']
server_floating_ip = self.create_floating_ip(server, pub_network_id)
fixed_ip = server['addresses'].values()[0][0]['addr']
fixed_ip = list(server['addresses'].values())[0][0]['addr']
return server, private_key, fixed_ip, server_floating_ip
def _create_topology(self):