cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject git commit: CLOUDSTACK-284: listVirtualMachines when zoneid passed
Date Fri, 14 Dec 2012 07:07:29 GMT
Updated Branches:
  refs/heads/master 15704cfa6 -> 0ba355fbc


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 <tsp@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/master
Commit: 0ba355fbc20411890b74f7b6f33edc057c493259
Parents: 15704cf
Author: Simon Waterhouse <simon.waterhouse@citrix.com>
Authored: Tue Nov 13 11:59:08 2012 +0000
Committer: Prasanna Santhanam <tsp@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);


Mime
View raw message