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

(cherry picked from commit ef2cf137a5)
This commit is contained in:
Sanjay Tripathi 2014-07-09 12:07:15 +05:30 committed by Daan Hoogland
parent bb5ba26b60
commit 3d62fbc6e5
1 changed files with 2 additions and 2 deletions

View File

@ -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);