Skip to content

Commit

Permalink
manager: support hidden config to hide entry from status output (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum authored Mar 10, 2023
1 parent 14001fc commit 1f74408
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ func (m *Manager) GetStatus() *Status {
for _, w := range m.workers {
wConfig := w.GetConfig()
wStatus := w.GetStatus()
status.WorkerStatus[wConfig["name"].(string)] = wStatus
if hidden, ok := wConfig["disabled"].(bool); ok && !hidden {
status.WorkerStatus[wConfig["name"].(string)] = wStatus
}
}
return &status
}

0 comments on commit 1f74408

Please sign in to comment.