fix(scheduler): filter InstanceGroup whose enabled is false

This commit is contained in:
Rain
2020-09-28 15:54:12 +08:00
parent b4c58ed9a1
commit ca58fb8d21
+3
View File
@@ -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