Bug #1800: Ignore LCM::MONITOR_DONE when the VM is in poweroff or suspended states

This commit is contained in:
Carlos Martín committed 2013-03-19 19:08:03 +01:00
1 parent b30c623bf9
commit 2cba2f1e21
1 file changed
+3 -1
+3 -1
View File
@@ -1060,7 +1060,9 @@ void LifeCycleManager::monitor_done_action(int vid)
vm->log("LCM", Log::INFO, "New VM state is UNKNOWN");
}
else if ( vm->get_lcm_state() != VirtualMachine::UNKNOWN )
else if ( vm->get_lcm_state() != VirtualMachine::UNKNOWN &&
vm->get_state() != VirtualMachine::POWEROFF &&
vm->get_state() != VirtualMachine::SUSPENDED )
{
vm->log("LCM",Log::ERROR,"monitor_done_action, VM in a wrong state");
}