From 65d880180b3bfc9eb5a568a17aaf9be9ee3d5a01 Mon Sep 17 00:00:00 2001 From: Jean-Marc ANDRE Date: Mon, 17 Apr 2023 01:09:42 +0200 Subject: [PATCH] cannot set sessionState to empty string otherwise the BackupSession does not get updated and the other targets won't Finalize --- controllers/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/session.go b/controllers/session.go index bf49e1e..bddf4c2 100644 --- a/controllers/session.go +++ b/controllers/session.go @@ -83,7 +83,7 @@ func (s Session) checkSessionState( // We still want to run Finalize for all the targets (continue) // but we also don't want to move the global BackupSession to Success (rewrite sessionState) // When the Job is over, it will move the target state to Finalized and we'll be fine - defer func() { sessionState = "" }() + defer func() { sessionState = waitState }() continue default: if i == len(tss)-1 {