Remove needless workaround in utils module
Workaround for bug in netaddr library has been removed due to the fix was introduced in 0.7.6 and nova currently requires 0.7.12 or newer version. Change-Id: If83cd8ee770d57547f4cfcdbba4a9fbfd55d5983 Related-Bug: #957708
This commit is contained in:
parent
16d38947ae
commit
373c581433
|
@ -540,10 +540,6 @@ def is_valid_cidr(address):
|
|||
netaddr.IPNetwork(address)
|
||||
except netaddr.core.AddrFormatError:
|
||||
return False
|
||||
except UnboundLocalError:
|
||||
# NOTE(MotoKen): work around bug in netaddr 0.7.5 (see detail in
|
||||
# https://github.com/drkjam/netaddr/issues/2)
|
||||
return False
|
||||
|
||||
# Prior validation partially verify /xx part
|
||||
# Verify it here
|
||||
|
|
Loading…
Reference in New Issue