From be87b6529d07dd402c0791d531380121f1321e68 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 10 Apr 2023 17:56:00 +0400 Subject: [PATCH] fix: send 'STOP' event on phase end Previously 'START' was sent for both start and finish. Signed-off-by: Andrey Smirnov (cherry picked from commit 3cd1c6bb0b83e5747a7356140a44b16deb4727e6) --- .../app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go b/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go index d24a35ebd6..1b8922e024 100644 --- a/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go +++ b/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go @@ -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)