Use proper name
This commit is contained in:
parent
0eccbd902f
commit
b17fab4ec1
|
@ -154,9 +154,9 @@ class VMInstance:
|
||||||
print('>>> %s - Unmigrating VM' % self.domuuid)
|
print('>>> %s - Unmigrating VM' % self.domuuid)
|
||||||
former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')
|
former_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')
|
||||||
transaction = self.zk.transaction()
|
transaction = self.zk.transaction()
|
||||||
transaction.set_data('/domains/' + domain + '/state', 'migrate'.encode('ascii'))
|
transaction.set_data('/domains/' + self.domuuid + '/state', 'migrate'.encode('ascii'))
|
||||||
transaction.set_data('/domains/' + domain + '/hypervisor', former_hypervisor.encode('ascii'))
|
transaction.set_data('/domains/' + self.domuuid + '/hypervisor', former_hypervisor.encode('ascii'))
|
||||||
transaction.set_data('/domains/' + domain + '/formerhypervisor', ''.encode('ascii'))
|
transaction.set_data('/domains/' + self.domuuid + '/formerhypervisor', ''.encode('ascii'))
|
||||||
result = transaction.commit()
|
result = transaction.commit()
|
||||||
|
|
||||||
# Receive the migration from another host (wait until VM is running)
|
# Receive the migration from another host (wait until VM is running)
|
||||||
|
|
Loading…
Reference in New Issue