Use right variable
This commit is contained in:
parent
982a9a2fd4
commit
286561307b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue