mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7029: listCapacity fails when podid argument is specified.
(cherry picked from commit ef2cf137a5)
This commit is contained in:
parent
bb5ba26b60
commit
3d62fbc6e5
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue