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

cyclades: Fix check for firewall profile

parent 93221866
......@@ -769,7 +769,7 @@ def disconnect_from_network(vm, nic):
# without successfully removing the NIC. This issue will be fixed with
# use of NIC UUIDs.
firewall_profile = nic.firewall_profile
if firewall_profile != "DISABLED":
if firewall_profile and firewall_profile != "DISABLED":
tag = _firewall_tags[firewall_profile] % nic.index
client.DeleteInstanceTags(vm.backend_vm_id, [tag],
dry_run=settings.TEST)
......
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