Skip to content

Commit

Permalink
Fixed: withParam parsing of JSON/YAML lists argoproj#1389
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-howell committed Jun 5, 2019
1 parent 270aabf commit c1efc86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ func SubmitWorkflow(wfIf v1alpha1.WorkflowInterface, wf *wfv1.Workflow, opts *Su
}
}

yamlParams := map[string]interface{}{}
yamlParams := map[string]json.RawMessage{}
err = yaml.Unmarshal(body, &yamlParams)
if err != nil {
return nil, errors.InternalWrapError(err)
}

for k, v := range yamlParams {
value := fmt.Sprintf("%v", v)
value := fmt.Sprintf("%s", v)
param := wfv1.Parameter{
Name: k,
Value: &value,
Expand Down

0 comments on commit c1efc86

Please sign in to comment.