mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
修正:capability接口返回的hypervisor列表中忽略了baremetal
This commit is contained in:
@@ -52,7 +52,7 @@ func getHypervisors(zone *SZone) []string {
|
||||
q = q.Equals("zone_id", zone.Id)
|
||||
}
|
||||
q = q.IsNotEmpty("host_type").IsNotNull("host_type")
|
||||
q = q.Equals("host_status", HOST_ONLINE)
|
||||
// q = q.Equals("host_status", HOST_ONLINE)
|
||||
q = q.IsTrue("enabled")
|
||||
q = q.Distinct()
|
||||
rows, err := q.Rows()
|
||||
|
||||
Reference in New Issue
Block a user