Pylint: fix trivial issues 6
fix: usage generator as list Related-bug: #1556791 Closes-bug: #1556054 Change-Id: Iff7b562e599ac1b81f6043f5ec69a6dbc4a86669
This commit is contained in:
parent
abcb0899db
commit
e07b35a2e0
|
@ -2578,7 +2578,7 @@ class FuelWebClient(object):
|
|||
if network['name'] != network_name:
|
||||
continue
|
||||
old_cidr = netaddr.IPNetwork(str(network['cidr']))
|
||||
new_cidr = old_cidr.subnet(1)[0]
|
||||
new_cidr = list(old_cidr.subnet(1))[0]
|
||||
assert_not_equal(old_cidr, new_cidr,
|
||||
'Can\t create a subnet using default cidr {0} '
|
||||
'for {1} network!'.format(old_cidr, network_name))
|
||||
|
|
Loading…
Reference in New Issue