From 4c7f7180b6a4ea525223f0b7dc644df314288f56 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 11:52:48 -0400 Subject: [PATCH] Fix decoding fluke --- VMInstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index 22b78c8d..5e9824fc 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -152,10 +152,10 @@ class VMInstance: def unmigrate_vm(self): print('>>> %s - Unmigrating VM' % self.domuuid) - former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')[0] + former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')[0] # I don't decode this transaction = self.zk.transaction() 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 + '/hypervisor', former_hypervisor) transaction.set_data('/domains/' + self.domuuid + '/formerhypervisor', ''.encode('ascii')) result = transaction.commit()