Skip to content

Commit 1f74408

Browse files
manager: support hidden config to hide entry from status output (#78)
1 parent 14001fc commit 1f74408

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/manager/manager.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ func (m *Manager) GetStatus() *Status {
317317
for _, w := range m.workers {
318318
wConfig := w.GetConfig()
319319
wStatus := w.GetStatus()
320-
status.WorkerStatus[wConfig["name"].(string)] = wStatus
320+
if hidden, ok := wConfig["disabled"].(bool); ok && !hidden {
321+
status.WorkerStatus[wConfig["name"].(string)] = wStatus
322+
}
321323
}
322324
return &status
323325
}

0 commit comments

Comments
 (0)