Skip to content

Commit

Permalink
fix: send 'STOP' event on phase end
Browse files Browse the repository at this point in the history
Previously 'START' was sent for both start and finish.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
(cherry picked from commit 3cd1c6b)
  • Loading branch information
smira committed Apr 11, 2023
1 parent 805887e commit be87b65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (c *Controller) runPhase(ctx context.Context, phase runtime.Phase, seq runt

defer c.Runtime().Events().Publish(ctx, &machine.PhaseEvent{
Phase: phase.Name,
Action: machine.PhaseEvent_START,
Action: machine.PhaseEvent_STOP,
})

eg, ctx := errgroup.WithContext(ctx)
Expand Down

0 comments on commit be87b65

Please sign in to comment.