Fix bad ZK node entry

This commit is contained in:
Joshua Boniface 2019-07-06 01:42:55 -04:00
parent e4576c016f
commit 4f6d0baf6c
1 changed files with 1 additions and 1 deletions

View File

@ -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))