fix storagedomain retrieval

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2026-04-08 09:48:09 +05:30
parent 10782021e4
commit 1ddccaa767
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ public class StoragePoolJoinDaoImpl extends GenericDaoBase<StoragePoolJoinVO, Lo
public List<StoragePoolJoinVO> listByZoneAndType(long zoneId, List<Storage.StoragePoolType> types, Filter filter) {
SearchBuilder<StoragePoolJoinVO> sb = createSearchBuilder();
sb.and("zoneId", sb.entity().getZoneId(), SearchCriteria.Op.EQ);
sb.and("types", sb.entity().getZoneId(), SearchCriteria.Op.IN);
sb.and("types", sb.entity().getPoolType(), SearchCriteria.Op.IN);
sb.done();
SearchCriteria<StoragePoolJoinVO> sc = sb.create();
sc.setParameters("zoneId", zoneId);