Don't set unmigrated VMs to start

This commit is contained in:
Joshua Boniface 2019-03-20 10:19:01 -04:00
parent 0dbd1c41a9
commit eec14ff177
1 changed files with 2 additions and 1 deletions

View File

@ -453,7 +453,8 @@ def unmigrate_vm(zk_conn, domain):
# Get state and verify we're OK to proceed
current_state = zkhandler.readdata(zk_conn, '/domains/{}/state'.format(dom_uuid))
if current_state != 'start':
target_state = 'start'
# If the current state isn't start, preserve it; we're not doing live migration
target_state = current_state
else:
target_state = 'migrate'