diff --git a/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java b/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java index ee87b26ffb7..308fd2c6807 100644 --- a/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java +++ b/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java @@ -1593,9 +1593,7 @@ public class HostDaoImpl extends GenericDaoBase 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());