You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2014/07/14 15:37:25 UTC
[21/44] git commit: updated refs/heads/vpc-toolkit-hugo to 1ad1883
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/vpc-toolkit-hugo
Commit: f275eb1ff9c2cb0ec8a74c4a891366d9403e858f
Parents: 362f875
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Wed Jul 9 12:07:15 2014 +0530
Committer: Sanjay Tripathi <sa...@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);