Manager: include worker name when returning blocklist
This commit is contained in:
parent
1caa4c2a59
commit
f3aab8611c
@ -354,8 +354,9 @@ func (f *Flamenco) FetchJobBlocklist(e echo.Context, jobID string) error {
|
|||||||
apiList := api.JobBlocklist{}
|
apiList := api.JobBlocklist{}
|
||||||
for _, item := range list {
|
for _, item := range list {
|
||||||
apiList = append(apiList, api.JobBlocklistEntry{
|
apiList = append(apiList, api.JobBlocklistEntry{
|
||||||
TaskType: item.TaskType,
|
TaskType: item.TaskType,
|
||||||
WorkerId: item.Worker.UUID,
|
WorkerId: item.Worker.UUID,
|
||||||
|
WorkerName: &item.Worker.Name,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user