Return false when vm fails to stop

This commit is contained in:
alena 2011-03-01 14:43:40 -08:00
parent a8e70cf9b4
commit a1e9f7d5c2

View File

@ -829,7 +829,9 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
} finally {
if (!stopped) {
if (!forced) {
s_logger.warn("Unable to stop vm " + vm);
stateTransitTo(vm, Event.OperationFailed, vm.getHostId());
return false;
} else {
s_logger.warn("Unable to actually stop " + vm + " but continue with release because it's a force stop");
}