Remove unused variable
TrivialFix Change-Id: I2dc65d75ed1b00f8833a7bf44541476c7f10a609
This commit is contained in:
parent
d184d619d7
commit
b6dfa082fc
@ -49,7 +49,7 @@ class ServerAddressesTestJSON(base.BaseV2ComputeTest):
|
||||
# We do not know the exact network configuration, but an instance
|
||||
# should at least have a single public or private address
|
||||
self.assertGreaterEqual(len(addresses), 1)
|
||||
for network_name, network_addresses in addresses.items():
|
||||
for network_addresses in addresses.values():
|
||||
self.assertGreaterEqual(len(network_addresses), 1)
|
||||
for address in network_addresses:
|
||||
self.assertTrue(address['addr'])
|
||||
|
@ -912,7 +912,7 @@ class NetworkScenarioTest(ScenarioTest):
|
||||
# The target login is assumed to have been configured for
|
||||
# key-based authentication by cloud-init.
|
||||
try:
|
||||
for net_name, ip_addresses in server['addresses'].items():
|
||||
for ip_addresses in server['addresses'].values():
|
||||
for ip_address in ip_addresses:
|
||||
self.check_vm_connectivity(ip_address['addr'],
|
||||
username,
|
||||
|
@ -82,7 +82,7 @@ class TestAggregatesBasicOps(manager.ScenarioTest):
|
||||
aggregate = self.aggregates_client.set_metadata(aggregate['id'],
|
||||
metadata=meta)
|
||||
|
||||
for key, value in meta.items():
|
||||
for key in meta.keys():
|
||||
self.assertEqual(meta[key],
|
||||
aggregate['aggregate']['metadata'][key])
|
||||
|
||||
|
@ -94,7 +94,7 @@ class TestMinimumBasicScenario(manager.ScenarioTest):
|
||||
raise exceptions.TimeoutException(msg)
|
||||
|
||||
def _get_floating_ip_in_server_addresses(self, floating_ip, server):
|
||||
for network_name, addresses in server['addresses'].items():
|
||||
for addresses in server['addresses'].values():
|
||||
for address in addresses:
|
||||
if (address['OS-EXT-IPS:type'] == 'floating' and
|
||||
address['addr'] == floating_ip['ip']):
|
||||
|
@ -110,7 +110,7 @@ class TestGettingAddress(manager.NetworkScenarioTest):
|
||||
@staticmethod
|
||||
def define_server_ips(srv):
|
||||
ips = {'4': None, '6': []}
|
||||
for net_name, nics in srv['addresses'].items():
|
||||
for nics in srv['addresses'].values():
|
||||
for nic in nics:
|
||||
if nic['version'] == 6:
|
||||
ips['6'].append(nic['addr'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user