You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/12/19 23:04:28 UTC
[43/50] [abbrv] git commit: CLOUDSTACK-284: listVirtualMachines when
zoneid passed
CLOUDSTACK-284: listVirtualMachines when zoneid passed
When zoneid is passed an no state is specified listVIrtualMachines does
not return the destroyed vms. This patch fixes the issue.
Signed-off-by: Prasanna Santhanam <ts...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0ba355fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0ba355fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0ba355fb
Branch: refs/heads/ui-plugins
Commit: 0ba355fbc20411890b74f7b6f33edc057c493259
Parents: 15704cf
Author: Simon Waterhouse <si...@citrix.com>
Authored: Tue Nov 13 11:59:08 2012 +0000
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Thu Dec 13 23:06:07 2012 -0800
----------------------------------------------------------------------
server/src/com/cloud/vm/UserVmManagerImpl.java | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0ba355fb/server/src/com/cloud/vm/UserVmManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java
index 02d630f..cb0531c 100755
--- a/server/src/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -3161,10 +3161,6 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
if (zone != null) {
sc.setParameters("dataCenterId", zone);
-
- if (state == null) {
- sc.setParameters("stateNEQ", "Destroyed");
- }
}
if (pod != null) {
sc.setParameters("podId", pod);