Skip to content

Commit 3a19fa8

Browse files
author
gitlab
committed
Merge branch 'bug9599' into 'master'
Fix condition in clean stale vnc rules Closes ZSTAC-9599 See merge request !862
2 parents 112a2d6 + 4c5ce05 commit 3a19fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kvmagent/kvmagent/plugins/vm_plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def delete_stale_chains(self):
342342
for vm in vms:
343343
if is_namespace_used():
344344
vm_id_node = find_zstack_metadata_node(etree.fromstring(vm.domain_xml), 'internalId')
345-
if not vm_id_node:
345+
if vm_id_node is None:
346346
continue
347347

348348
vm_id = vm_id_node.text

0 commit comments

Comments
 (0)