Ensure being in migrate doesn't abort shutdown

This commit is contained in:
Joshua Boniface 2021-06-21 23:28:53 -04:00
parent b532bc9104
commit 7d42fba373
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ class VMInstance(object):
# Abort shutdown if the state changes to start
current_state = self.zkhandler.read(('domain.state', self.domuuid))
if current_state not in ['shutdown', 'restart']:
if current_state not in ['shutdown', 'restart', 'migrate']:
self.logger.out('Aborting VM shutdown due to state change', state='i', prefix='Domain {}'.format(self.domuuid))
is_aborted = True
break