verbose variable names in for loop

This commit is contained in:
nfedotov 2013-07-17 17:35:12 +04:00 committed by default
parent 6e8b551568
commit a42e9340b6
1 changed files with 3 additions and 3 deletions

View File

@ -217,9 +217,9 @@ class TestNode(BaseNodeTestCase):
# set ip ranges for floating network
networks = self.client.get_networks(cluster_id)
for i, n in enumerate(networks['networks']):
if n['name'] == 'floating':
networks['networks'][i]['ip_ranges'] = [
for interface, network in enumerate(networks['networks']):
if network['name'] == 'floating':
networks['networks'][interface]['ip_ranges'] = [
['240.0.0.2', '240.0.0.10'],
['240.0.0.20', '240.0.0.25'],
['240.0.0.30', '240.0.0.35']]