Skip to content

Commit

Permalink
Update workflowpod.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tooptoop4 authored May 31, 2024
1 parent 83b874a commit 60e7eec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 60e7eec

Please sign in to comment.