Fix a None error when creating link

This commit is contained in:
Julien Duponchelle committed 2016-11-11 16:08:52 +01:00
1 parent 8db9b89318
commit 3bc4e951b8
1 file changed
+1 -1
+1 -1
View File
@@ -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