Fix bug with flush

This commit is contained in:
Joshua Boniface 2019-07-10 00:43:55 -04:00
parent 7a8aee9fe7
commit c7c8c8bcbb
1 changed files with 1 additions and 1 deletions

View File

@ -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))