From 9c7f1422475c963da5f2ace4a769f8e35044423e Mon Sep 17 00:00:00 2001 From: abhi Date: Thu, 9 Feb 2012 16:13:31 +0530 Subject: [PATCH] bug 13549: narrow the condition to stop vm, excluding destroyed and expunging reviewed-by: kishan --- server/src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java index 3a47b68d790..32383399233 100755 --- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -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);