Set the hypervisor back on a failed migrate

This commit is contained in:
Joshua Boniface 2018-06-02 16:33:53 -04:00
parent ea97b51edb
commit f032dbefac
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ class VMInstance:
if dest_conn == None:
raise
except:
print('>>> Failed to open connection to qemu+ssh://%s/system' % target)
print('>>> Failed to open connection to qemu+ssh://%s/system' % self.hypervisor)
self.zk.set(self.zkey + '/hypervisor', self.thishypervisor.name.encode('ascii'))
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
return