mirror of https://github.com/apache/cloudstack.git
Merge remote-tracking branch 'origin/4.11'
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
commit
d9236843cb
|
|
@ -1872,6 +1872,13 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
if (!stateTransitTo(vm, VirtualMachine.Event.DestroyRequested, vm.getHostId())) {
|
||||
s_logger.debug("Unable to destroy the vm because it is not in the correct state: " + vm);
|
||||
throw new CloudRuntimeException("Unable to destroy " + vm);
|
||||
} else {
|
||||
if (expunge) {
|
||||
if (!stateTransitTo(vm, VirtualMachine.Event.ExpungeOperation, vm.getHostId())) {
|
||||
s_logger.debug("Unable to expunge the vm because it is not in the correct state: " + vm);
|
||||
throw new CloudRuntimeException("Unable to expunge " + vm);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (final NoTransitionException e) {
|
||||
s_logger.debug(e.getMessage());
|
||||
|
|
|
|||
Loading…
Reference in New Issue