From 9852667f9d7500b47509fd373e25cee9d2f862e7 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 18 Jul 2018 02:52:52 -0400 Subject: [PATCH] Add current_hypervisor to the right place --- pvcd/NodeInstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pvcd/NodeInstance.py b/pvcd/NodeInstance.py index 6e98fd8d..2521a996 100644 --- a/pvcd/NodeInstance.py +++ b/pvcd/NodeInstance.py @@ -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')