mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #-: Fix epilog transition for undeploy/stopped
This commit is contained in:
parent
5099aaedba
commit
9a9822a284
@ -514,7 +514,15 @@ void LifeCycleManager::trigger_shutdown(int vid, bool hard,
|
||||
vm->get_state() == VirtualMachine::UNDEPLOYED)
|
||||
{
|
||||
vm->set_state(VirtualMachine::ACTIVE);
|
||||
vm->set_state(VirtualMachine::EPILOG);
|
||||
|
||||
if ( vm->get_state() == VirtualMachine::STOPPED )
|
||||
{
|
||||
vm->set_state(VirtualMachine::EPILOG_STOP);
|
||||
}
|
||||
else // if ( vm->get_state() == VirtualMachine::UNDEPLOYED )
|
||||
{
|
||||
vm->set_state(VirtualMachine::EPILOG_UNDEPLOY);
|
||||
}
|
||||
|
||||
Quotas::vm_check(uid, gid, "a_tmpl, error);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user