mirror of https://github.com/apache/cloudstack.git
bug 13549: narrow the condition to stop vm, excluding destroyed and expunging
reviewed-by: kishan
This commit is contained in:
parent
70be4b6392
commit
9c7f142247
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue