From b17fab4ec10e8acfbe17d055be42be4284a5d1d1 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 11:51:31 -0400 Subject: [PATCH] Use proper name --- VMInstance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index 6914cdf6..f9ea6832 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -154,9 +154,9 @@ class VMInstance: print('>>> %s - Unmigrating VM' % self.domuuid) former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor') transaction = self.zk.transaction() - transaction.set_data('/domains/' + domain + '/state', 'migrate'.encode('ascii')) - transaction.set_data('/domains/' + domain + '/hypervisor', former_hypervisor.encode('ascii')) - transaction.set_data('/domains/' + domain + '/formerhypervisor', ''.encode('ascii')) + transaction.set_data('/domains/' + self.domuuid + '/state', 'migrate'.encode('ascii')) + transaction.set_data('/domains/' + self.domuuid + '/hypervisor', former_hypervisor.encode('ascii')) + transaction.set_data('/domains/' + self.domuuid + '/formerhypervisor', ''.encode('ascii')) result = transaction.commit() # Receive the migration from another host (wait until VM is running)