Use right variable

This commit is contained in:
Joshua Boniface 2018-06-02 15:35:19 -04:00
parent 982a9a2fd4
commit 286561307b
1 changed files with 1 additions and 1 deletions

View File

@ -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)