mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6843: [Automation] List listServiceOfferings api fails with NPE
Incorrect parameter name used in query building resulted in a bad sql query.
(cherry picked from commit 025c143ac7)
This commit is contained in:
parent
073928fef5
commit
5fe7eb3357
|
|
@ -2546,7 +2546,7 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
|
|||
}
|
||||
|
||||
if (vmTypeStr != null) {
|
||||
sc.addAnd("vm_type", SearchCriteria.Op.EQ, vmTypeStr);
|
||||
sc.addAnd("vmType", SearchCriteria.Op.EQ, vmTypeStr);
|
||||
}
|
||||
|
||||
return _srvOfferingJoinDao.searchAndCount(sc, searchFilter);
|
||||
|
|
|
|||
Loading…
Reference in New Issue