Skip to content

Commit 4c5ce05

Browse files
committed
Fix condition in clean stale vnc rules
Resolves ZSTAC-9599 Signed-off-by: AlanJager <alanjager@outlook.com>
1 parent 112a2d6 commit 4c5ce05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kvmagent/kvmagent/plugins/vm_plugin.py

Lines changed: 1 addition & 1 deletion
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)