Forgot the array

This commit is contained in:
Joshua Boniface 2018-06-04 11:52:05 -04:00
parent b17fab4ec1
commit 9dcad19861
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class VMInstance:
def unmigrate_vm(self):
print('>>> %s - Unmigrating VM' % self.domuuid)
former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')
former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')[0]
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'))