cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanjaytripa...@apache.org
Subject git commit: updated refs/heads/master to f275eb1
Date Wed, 09 Jul 2014 06:38:00 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 362f875a3 -> f275eb1ff


CLOUDSTACK-7029: listCapacity fails when podid argument is specified.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f275eb1f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f275eb1f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f275eb1f

Branch: refs/heads/master
Commit: f275eb1ff9c2cb0ec8a74c4a891366d9403e858f
Parents: 362f875
Author: Sanjay Tripathi <sanjay.tripathi@citrix.com>
Authored: Wed Jul 9 12:07:15 2014 +0530
Committer: Sanjay Tripathi <sanjay.tripathi@citrix.com>
Committed: Wed Jul 9 12:09:33 2014 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f275eb1f/engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java b/engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java
index bcd6fa7..df023bf 100644
--- a/engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java
+++ b/engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java
@@ -659,12 +659,12 @@ public class VMInstanceDaoImpl extends GenericDaoBase<VMInstanceVO,
Long> implem
         finalQuery.append(COUNT_VMS_BASED_ON_VGPU_TYPES1);
 
         if (podId != null) {
-            finalQuery.append(" AND host.pod_id = ?");
+            finalQuery.append("AND host.pod_id = ? ");
             resourceIdList.add(podId);
         }
 
         if (clusterId != null) {
-            finalQuery.append(" AND host.cluster_id = ?");
+            finalQuery.append("AND host.cluster_id = ? ");
             resourceIdList.add(clusterId);
         }
         finalQuery.append(COUNT_VMS_BASED_ON_VGPU_TYPES2);


Mime
View raw message