1
0
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:
Ruben S. Montero 2015-05-08 21:02:30 +02:00
parent ea84c6ef95
commit 8dbd5380ea

View File

@ -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);