mirror of https://github.com/apache/cloudstack.git
server: allow expunging VMs in Expunging state (#7086)
This commit is contained in:
parent
0c925be44d
commit
f9117df0b5
|
|
@ -3304,7 +3304,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||
throw new InvalidParameterValueException("unable to find a virtual machine with id " + vmId);
|
||||
}
|
||||
|
||||
if ((vm.getState() == State.Destroyed && !expunge) || vm.getState() == State.Expunging) {
|
||||
if (Arrays.asList(State.Destroyed, State.Expunging).contains(vm.getState()) && !expunge) {
|
||||
s_logger.debug("Vm id=" + vmId + " is already destroyed");
|
||||
return vm;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue