Skip to content

Commit

Permalink
fix: use an empty string when param is nil
Browse files Browse the repository at this point in the history
Signed-off-by: Miltiadis Alexis <[email protected]>
  • Loading branch information
miltalex committed Aug 14, 2024
1 parent 651bee8 commit 301376f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workflow/controller/exit_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ func (woc *wfOperationCtx) resolveExitTmplArgument(args wfv1.Arguments, prefix s
}
if outputs != nil {
for _, param := range outputs.Parameters {
value := ""
if param.Value != nil {
scope.addParamToScope(fmt.Sprintf("%s.outputs.parameters.%s", prefix, param.Name), param.Value.String())
value = param.Value.String()
}
scope.addParamToScope(fmt.Sprintf("%s.outputs.parameters.%s", prefix, param.Name), value)
}
for _, arts := range outputs.Artifacts {
scope.addArtifactToScope(fmt.Sprintf("%s.outputs.artifacts.%s", prefix, arts.Name), arts)
Expand Down

0 comments on commit 301376f

Please sign in to comment.