From 286561307bd4516ce5cf9e8c4154eab8a5eb1c4a Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 15:35:19 -0400 Subject: [PATCH] Use right variable --- VMInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index ee6cf934..ac4cc949 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -70,7 +70,7 @@ class VMInstance: print(self.zkey) self.zk.set(self.zkey + '/state', 'migrate'.encode('ascii')) - dest_conn = libvirt.open('qemu+ssh://%s/system' % target) + dest_conn = libvirt.open('qemu+ssh://%s/system' % self.hypervisor) if dest_conn == None: self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) print('Failed to open connection to qemu+ssh://%s/system' % target)