mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
Return false when vm fails to stop
This commit is contained in:
parent
a8e70cf9b4
commit
a1e9f7d5c2
@ -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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user