From 60e7eece2b8181b17af04cdc983bb18b60c61b34 Mon Sep 17 00:00:00 2001 From: tooptoop4 <33283496+tooptoop4@users.noreply.github.com> Date: Sat, 1 Jun 2024 09:49:01 +1000 Subject: [PATCH] Update workflowpod.go --- workflow/controller/workflowpod.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/controller/workflowpod.go b/workflow/controller/workflowpod.go index 7bfcb7e4114e..b5ac53d64d1f 100644 --- a/workflow/controller/workflowpod.go +++ b/workflow/controller/workflowpod.go @@ -293,12 +293,12 @@ func (woc *wfOperationCtx) createWorkflowPod(ctx context.Context, nodeName strin // Preserve Inputs.Artifacts and clear other inputs var artifacts []wfv1.Artifact if len(tmplWithoutInputs.Inputs.Artifacts) > 0 { - artifacts = tmplWithoutInputs.Inputs.Artifacts + artifacts = tmplWithoutInputs.Inputs.Artifacts } else { - artifacts = []wfv1.Artifact{} + artifacts = []wfv1.Artifact{} } tmplWithoutInputs.Inputs = wfv1.Inputs{ - Artifacts: artifacts, + Artifacts: artifacts, } envVarTemplateValue = wfv1.MustMarshallJSON(tmplWithoutInputs) }