bug 13549: narrow the condition to stop vm, excluding destroyed and expunging

reviewed-by: kishan
This commit is contained in:
abhi 2012-02-09 16:13:31 +05:30
parent 70be4b6392
commit 9c7f142247
1 changed files with 1 additions and 1 deletions

View File

@ -1682,7 +1682,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
e.printStackTrace();
}
}
else if (info != null && (vm.getState() == State.Stopped || vm.getState() == State.Stopping || vm.getState() == State.Destroyed || vm.getState() == State.Expunging)) {
else if (info != null && (vm.getState() == State.Stopped || vm.getState() == State.Stopping)) {
Host host = _hostDao.findByGuid(info.getHostUuid());
if (host != null){
s_logger.warn("Stopping a VM which is stopped/destroyed/expunging " + info.name);