From f61199975caea07b6bce5cc8a1118ddc1ec4b998 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 17 May 2021 12:25:42 +0200 Subject: [PATCH] Revert "M #-: Fix epilog transition for undeploy/stopped" This reverts commit 9a9822a284256405ce92aeec77d1a99ac81d51be. --- src/lcm/LifeCycleActions.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lcm/LifeCycleActions.cc b/src/lcm/LifeCycleActions.cc index c14e53325a..8bae510d82 100644 --- a/src/lcm/LifeCycleActions.cc +++ b/src/lcm/LifeCycleActions.cc @@ -514,15 +514,7 @@ void LifeCycleManager::trigger_shutdown(int vid, bool hard, vm->get_state() == VirtualMachine::UNDEPLOYED) { vm->set_state(VirtualMachine::ACTIVE); - - 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); - } + vm->set_state(VirtualMachine::EPILOG); Quotas::vm_check(uid, gid, "a_tmpl, error);