From d9ebd04264fac467bd6770dc4a71726f7216e60e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 7 Jul 2019 15:29:34 -0400 Subject: [PATCH] Fix missing dom_uuid values in data reads --- node-daemon/pvcd/NodeInstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvcd/NodeInstance.py b/node-daemon/pvcd/NodeInstance.py index 0281ee8d..363a37b1 100644 --- a/node-daemon/pvcd/NodeInstance.py +++ b/node-daemon/pvcd/NodeInstance.py @@ -362,8 +362,8 @@ class NodeInstance(object): target_node = findTargetHypervisor(self.zk_conn, 'mem', dom_uuid) # Don't replace the previous node if the VM is already migrated - if zkhandler.readdata(self.zk_conn, '/domains/{}/migrated') is 'yes': - current_node = zkhandler.readdata(self.zk_conn, '/domains/{}/lastnode') + if zkhandler.readdata(self.zk_conn, '/domains/{}/migrated'.format(dom_uuid)) == 'yes': + current_node = zkhandler.readdata(self.zk_conn, '/domains/{}/lastnode'.format(dom_uuid)) else: current_node = zkhandler.readdata(self.zk_conn, '/domains/{}/node'.format(dom_uuid))