Skip to content

Commit

Permalink
Merge branch 'bug9599' into 'master'
Browse files Browse the repository at this point in the history
Fix condition in clean stale vnc rules

Closes ZSTAC-9599

See merge request !862
  • Loading branch information
gitlab committed Feb 28, 2018
2 parents 112a2d6 + 4c5ce05 commit 3a19fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvmagent/kvmagent/plugins/vm_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def delete_stale_chains(self):
for vm in vms:
if is_namespace_used():
vm_id_node = find_zstack_metadata_node(etree.fromstring(vm.domain_xml), 'internalId')
if not vm_id_node:
if vm_id_node is None:
continue

vm_id = vm_id_node.text
Expand Down

0 comments on commit 3a19fa8

Please sign in to comment.