mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix(scheduler): filter InstanceGroup whose enabled is false
This commit is contained in:
@@ -105,6 +105,9 @@ func FetchSchedInfo(req *http.Request) (*SchedInfo, error) {
|
||||
}
|
||||
details := make(map[string]*models.SGroup)
|
||||
for i := range groups {
|
||||
if groups[i].Enabled.IsFalse() {
|
||||
continue
|
||||
}
|
||||
details[groups[i].Id] = &groups[i]
|
||||
}
|
||||
data.InstanceGroupsDetail = details
|
||||
|
||||
Reference in New Issue
Block a user