From cc402be6f697611cb14aff65d7d280e4a1cb59b5 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 12:18:23 -0400 Subject: [PATCH] Forgot self references --- VMInstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index 63172b57..60c32eba 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -142,7 +142,7 @@ class VMInstance: previous_hypervisor = self.zk.get(self.zkey + '/formerhypervisor')[0].decode('ascii') print('>>> %s - Migrating VM to %s' % (self.domuuid, new_hypervisor)) - migrate_ret = live_migrate_vm(new_hypervisor) + migrate_ret = self.live_migrate_vm(new_hypervisor) if migrate_ret != 0: print('>>> %s - Could not live migrate VM; forcing away uncleanly' % self.domuuid) self.stop_vm() @@ -166,7 +166,7 @@ class VMInstance: transaction.set_data('/domains/' + self.domuuid + '/hypervisor', new_hypervisor.encode('ascii')) transaction.set_data('/domains/' + self.domuuid + '/formerhypervisor', ''.encode('ascii')) result = transaction.commit() - migrate_ret = live_migrate_vm(new_hypervisor) + migrate_ret = self.live_migrate_vm(new_hypervisor) if migrate_ret != 0: print('>>> %s - Could not live migrate VM; forcing away uncleanly' % self.domuuid) self.stop_vm()