Skip to content

Commit

Permalink
fix: Parameter with Value and Default (argoproj#6887)
Browse files Browse the repository at this point in the history
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
  • Loading branch information
sarabala1979 authored and kriti-sc committed Oct 24, 2021
1 parent 3844140 commit 430e267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func ProcessArgs(tmpl *wfv1.Template, args wfv1.ArgumentsProvider, globalParams,
// 3) if no default value, it is an error
newTmpl := tmpl.DeepCopy()
for i, inParam := range newTmpl.Inputs.Parameters {
if inParam.Default != nil {
if inParam.Value == nil && inParam.Default != nil {
// first set to default value
inParam.Value = inParam.Default
}
Expand Down

0 comments on commit 430e267

Please sign in to comment.