Fix some problems with modify command after split

This commit is contained in:
2018-09-25 02:32:08 -04:00
parent 9107e16c33
commit 1c9c63db92
2 changed files with 11 additions and 3 deletions

View File

@ -218,10 +218,11 @@ def define_vm(zk_conn, config_data, target_hypervisor, selector):
return True, ''
def modify_vm(zk_conn, domain, restart):
def modify_vm(zk_conn, domain, restart, new_vm_config):
dom_uuid = getDomainUUID(zk_conn, domain)
if dom_uuid == None:
return False, 'ERROR: Could not find VM "{}" in the cluster!'.format(domain)
dom_name = getDomainName(zk_conn, domain)
# Add the modified config to Zookeeper
transaction = zk_conn.transaction()