From c8eb3c205d1dd8958bf2fbaea4479b0d3d9bd081 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Fri, 12 May 2023 17:21:46 +0200 Subject: [PATCH] worker: include condition identifier in conditionUpdate payload --- internal/worker/worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/worker/worker.go b/internal/worker/worker.go index d04d92da..385b5301 100644 --- a/internal/worker/worker.go +++ b/internal/worker/worker.go @@ -444,6 +444,7 @@ func (e *statusEmitter) Publish(ctx context.Context, task *model.Task) { update := &cpv1types.ConditionUpdateEvent{ Kind: cptypes.FirmwareInstallOutofband, ConditionUpdate: cpv1types.ConditionUpdate{ + ID: task.ID, State: cptypes.ConditionState(task.State()), Status: statusInfoJSON(task.Status), },