Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2024-10-17 14:01:41 +05:30
parent ad4c56a11f
commit 4b2c5734db

View File

@ -1593,9 +1593,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
sc.setParameters("clusterId", clusterId);
}
if (CollectionUtils.isNotEmpty(hypervisorTypes)) {
sb.and().op(sb.entity().getHypervisorType(), SearchCriteria.Op.NULL);
sc.setParameters("hypervisorTypes", hypervisorTypes.toArray());
sb.cp();
}
sc.setParameters("resourceState", resourceStates.toArray());
sc.setParameters("type", types.toArray());