From c7c8c8bcbb49e10b35bc2cfe51f492b0df4ddcfb Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 10 Jul 2019 00:43:55 -0400 Subject: [PATCH] Fix bug with flush --- node-daemon/pvcd/NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcd/NodeInstance.py b/node-daemon/pvcd/NodeInstance.py index dfc04a27..5136bd62 100644 --- a/node-daemon/pvcd/NodeInstance.py +++ b/node-daemon/pvcd/NodeInstance.py @@ -354,7 +354,7 @@ class NodeInstance(object): target_node = common.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'.format(dom_uuid)) == 'yes': + if zkhandler.readdata(self.zk_conn, '/domains/{}/lastnode'.format(dom_uuid)): 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))