slavkap commented on a change in pull request #4388:
URL: https://github.com/apache/cloudstack/pull/4388#discussion_r502209015



##########
File path: engine/schema/src/main/java/com/cloud/dc/dao/ClusterDaoImpl.java
##########
@@ -81,7 +81,6 @@ public ClusterDaoImpl() {
 
         ZoneSearch = createSearchBuilder();
         ZoneSearch.and("dataCenterId", ZoneSearch.entity().getDataCenterId(), 
SearchCriteria.Op.EQ);
-        ZoneSearch.groupBy(ZoneSearch.entity().getHypervisorType());

Review comment:
       @sureshanaparti I have tested it. My setup is 2 KVM cluster with 2 hosts 
on each. Before the change when listing hypervisors:
   
   > list hypervisors zoneid=307c2b69-86eb-451e-8517-6113c59648c4
   > { "count": 1,  "hypervisor": [ { "name": "KVM" } ] }
   
   with the change when listing hypervisors:
   
   > list hypervisors zoneid=307c2b69-86eb-451e-8517-6113c59648c4
   > { "count": 2,  "hypervisor": [  { "name": "KVM"  },   {  "name": "KVM"  } 
] }
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to