Skip to content

Commit 3d62fbc

Browse files
sanjaytripathiDaanHoogland
authored andcommitted
CLOUDSTACK-7029: listCapacity fails when podid argument is specified.
(cherry picked from commit ef2cf13)
1 parent bb5ba26 commit 3d62fbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎engine/schema/src/com/cloud/vm/dao/VMInstanceDaoImpl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,12 +659,12 @@ public HashMap<String, Long> countVgpuVMs(Long dcId, Long podId, Long clusterId)
659659
finalQuery.append(COUNT_VMS_BASED_ON_VGPU_TYPES1);
660660

661661
if (podId != null) {
662-
finalQuery.append(" AND host.pod_id = ?");
662+
finalQuery.append("AND host.pod_id = ? ");
663663
resourceIdList.add(podId);
664664
}
665665

666666
if (clusterId != null) {
667-
finalQuery.append(" AND host.cluster_id = ?");
667+
finalQuery.append("AND host.cluster_id = ? ");
668668
resourceIdList.add(clusterId);
669669
}
670670
finalQuery.append(COUNT_VMS_BASED_ON_VGPU_TYPES2);

0 commit comments

Comments
 (0)