Add current_hypervisor to the right place

This commit is contained in:
Joshua Boniface 2018-07-18 02:52:52 -04:00
parent 88dbc139fb
commit 9852667f9d
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ class NodeInstance():
for dom_uuid in fixed_domain_list:
ansiiprint.echo('Selecting target to migrate VM "{}"'.format(dom_uuid), '', 'i')
current_hypervisor = zkhandler.readdata(self.zk_conn, '/domains/{}/hypervisor'.format(dom_uuid))
target_hypervisor = findTargetHypervisor(self.zk_conn, 'mem', dom_uuid)
if target_hypervisor == None:
ansiiprint.echo('Failed to find migration target for VM "{}"; shutting down'.format(dom_uuid), '', 'e')