From 4f6d0baf6cd419a663c6de077ade6c543b219350 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 6 Jul 2019 01:42:55 -0400 Subject: [PATCH] Fix bad ZK node entry --- client-common/vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-common/vm.py b/client-common/vm.py index 383f577d..52f59edd 100644 --- a/client-common/vm.py +++ b/client-common/vm.py @@ -237,7 +237,7 @@ def undefine_vm(zk_conn, domain, is_cli=False): return False, 'ERROR: Could not find VM "{}" in the cluster!'.format(domain) # Shut down the VM - current_vm_state = zkhandler.readdata(zk_conn, '/domains/{}/state'.format(domain)) + current_vm_state = zkhandler.readdata(zk_conn, '/domains/{}/state'.format(dom_uuid)) if current_vm_state != 'stop': if is_cli: click.echo('Forcibly stopping VM "{}".'.format(domain))