From 12817a761ffc789f464b5785d5d0cffcf1b0b27b Mon Sep 17 00:00:00 2001 From: mesutoezdil Date: Fri, 26 Jun 2026 20:22:39 +0200 Subject: [PATCH] fix: skip empty node name in local snapshot info after pause finalization --- cmd/ateapi/internal/controlapi/workflow_pause.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/ateapi/internal/controlapi/workflow_pause.go b/cmd/ateapi/internal/controlapi/workflow_pause.go index a7aaa41bc..3eccc34d7 100644 --- a/cmd/ateapi/internal/controlapi/workflow_pause.go +++ b/cmd/ateapi/internal/controlapi/workflow_pause.go @@ -218,14 +218,15 @@ func (s *FinalizePausedStep) Execute(ctx context.Context, input *PauseInput, sta } // TODO(dberkov) - what if InProgressSnapshot is empty? That shouldn't be possible. if latestActor.InProgressSnapshot != "" { + localInfo := &ateapipb.LocalSnapshotInfo{ + SnapshotPrefix: latestActor.InProgressSnapshot, + } + if nodeName != "" { + localInfo.NodeVmsWithLocalSnapshots = []string{nodeName} + } latestActor.LatestSnapshotInfo = &ateapipb.SnapshotInfo{ Type: ateapipb.SnapshotType_SNAPSHOT_TYPE_LOCAL, - Data: &ateapipb.SnapshotInfo_Local{ - Local: &ateapipb.LocalSnapshotInfo{ - SnapshotPrefix: latestActor.InProgressSnapshot, - NodeVmsWithLocalSnapshots: []string{nodeName}, - }, - }, + Data: &ateapipb.SnapshotInfo_Local{Local: localInfo}, } latestActor.InProgressSnapshot = "" }