From 203e9bf790ec68bc8ac5d01febbf809af94ddef3 Mon Sep 17 00:00:00 2001 From: tooptoop4 <33283496+tooptoop4@users.noreply.github.com> Date: Fri, 14 Jun 2024 21:37:36 +1000 Subject: [PATCH] Update operator.go --- workflow/controller/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 2c5cdf3b7264..f6c907679474 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -1860,7 +1860,7 @@ func buildRetryStrategyLocalScope(node *wfv1.NodeStatus, nodes wfv1.Nodes) map[s exitCode := "-1" if lastChildNode.Outputs != nil && lastChildNode.Outputs.ExitCode != nil { exitCode = *lastChildNode.Outputs.ExitCode - } else if lastChildNode.Message != nil { + } else { tmpexitCode, err := extractExitCode(lastChildNode.Message) if err == nil { exitCode = tmpexitCode