Fix a None error when creating link

pull/781/head
Julien Duponchelle 8 years ago
parent 8db9b89318
commit 3bc4e951b8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -611,7 +611,7 @@ class Compute:
this_network = ipaddress.ip_network("{}/{}".format(this_interface["ip_address"], this_interface["netmask"]), strict=False)
for other_interface in other_compute_interfaces:
if len(other_interface["ip_address"]) == 0:
if len(other_interface["ip_address"]) == 0 or other_interface["netmask"] is None:
continue
# Avoid stuff like 127.0.0.1

Loading…
Cancel
Save