Commit f516945d authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Fix bug in process_net_status

Check that nic has an ipv4 before trying to release it.
parent 626be971
......@@ -171,7 +171,8 @@ def release_instance_nics(vm):
# Get the network object in exclusive mode in order
# to guarantee consistency of the address pool
net = Network.objects.select_for_update().get(pk=pk)
if nic.ipv4:
return networks
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment