bug 9184: allow detach a volume when the VM is in Destroyed status

status 9184: resolved fixed
This commit is contained in:
anthony 2011-03-28 14:45:35 -07:00
parent 8712334ae2
commit 045b6ac319
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}