mirror of https://github.com/apache/cloudstack.git
bug 9184: allow detach a volume when the VM is in Destroyed status
status 9184: resolved fixed
This commit is contained in:
parent
8712334ae2
commit
045b6ac319
|
|
@ -699,7 +699,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
|
||||
// Check that the VM is in the correct state
|
||||
UserVmVO vm = _vmDao.findById(vmId);
|
||||
if (vm.getState() != State.Running && vm.getState() != State.Stopped) {
|
||||
if (vm.getState() != State.Running && vm.getState() != State.Stopped && vm.getState() != State.Destroyed) {
|
||||
throw new InvalidParameterValueException("Please specify a VM that is either running or stopped.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue