Fix handling of force away

This commit is contained in:
Joshua Boniface 2018-06-02 16:10:59 -04:00
parent 19888143c5
commit 915e592f5a
1 changed files with 2 additions and 1 deletions

View File

@ -106,8 +106,9 @@ class VMInstance:
raise
except:
print('Could not migrate to the new domain; forcing away uncleanly')
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
self.stop_vm()
time.sleep(0.5)
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
try:
self.thishypervisor.domain_list.remove(self.domuuid)