Github user kishankavala commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/846#discussion_r64195431
  
    --- Diff: engine/schema/src/com/cloud/host/dao/HostDaoImpl.java ---
    @@ -1087,4 +1087,11 @@ public HostVO findByPublicIp(String publicIp) {
             sc.addAnd("dataCenterId", SearchCriteria.Op.EQ, zoneId);
             return customSearch(sc, null);
         }
    +
    +    @Override
    +    public List<HostVO> listByType(Host.Type type) {
    +        SearchCriteria<HostVO> sc = TypeSearch.create();
    +        sc.setParameters("type", type);
    +        return listBy(sc);
    --- End diff --
    
    @rhtyd 
    listBy(sc) in GenericDao base returns an empty ArrayList if there is no 
matching data. 
    listByType doesn't return null


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to