Skip to content

Commit

Permalink
worker: include condition identifier in conditionUpdate payload
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed May 12, 2023
1 parent a90bb26 commit c8eb3c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down

0 comments on commit c8eb3c2

Please sign in to comment.