Fix some bugs

This commit is contained in:
2018-06-15 01:45:14 -04:00
parent 6798d4c078
commit 60fba72976
2 changed files with 3 additions and 3 deletions

2
pvc.py
View File

@ -768,7 +768,7 @@ def undefine_vm(dom_name, dom_uuid):
time.sleep(3)
# Gracefully terminate the class instances
transaction.set_data('/domains/{}/state'.format(dom_uuid), 'delete'.encode('ascii'))
zk.set('/domains/{}/state'.format(dom_uuid), 'delete'.encode('ascii'))
time.sleep(2)
# Delete the configurations
click.echo('Undefining VM "{}".'.format(dom_uuid))