mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #3235: Do PROLOG instead of PROLOG_RESUME after delete-recreating a VM
This commit is contained in:
parent
ea84c6ef95
commit
8dbd5380ea
@ -861,6 +861,12 @@ int DispatchManager::resubmit(
|
||||
case VirtualMachine::HOLD: // Move the VM to PENDING in any of these
|
||||
case VirtualMachine::STOPPED:
|
||||
case VirtualMachine::UNDEPLOYED:
|
||||
if (vm->hasHistory())
|
||||
{
|
||||
vm->set_action(History::DELETE_RECREATE_ACTION);
|
||||
vmpool->update_history(vm);
|
||||
}
|
||||
|
||||
vm->set_state(VirtualMachine::LCM_INIT);
|
||||
vm->set_state(VirtualMachine::PENDING);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user