mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(region): host guest cnt for deleted
This commit is contained in:
@@ -2958,7 +2958,7 @@ func (manager *SHostManager) FetchGuestCnt(hostIds []string) map[string]*sGuestC
|
||||
return ret
|
||||
}
|
||||
guests := []SGuest{}
|
||||
err := GuestManager.RawQuery().In("host_id", hostIds).NotEquals("hypervisor", api.HYPERVISOR_CONTAINER).All(&guests)
|
||||
err := GuestManager.RawQuery().IsFalse("deleted").In("host_id", hostIds).NotEquals("hypervisor", api.HYPERVISOR_CONTAINER).All(&guests)
|
||||
if err != nil {
|
||||
log.Errorf("query host %s guests error: %v", hostIds, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user