Skip to content

Commit

Permalink
Remove extra quotes around output parameter value (#1232)
Browse files Browse the repository at this point in the history
Ensure we do not insert extra single quotes when using
valueFrom: jsonPath to set the value of an output parameter for
resource templates.

Signed-off-by: Ilias Katsakioris <[email protected]>
  • Loading branch information
elikatsis authored and alexmt committed Feb 25, 2019
1 parent 8b67e1b commit eeac5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/executor/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (we *WorkflowExecutor) SaveResourceParameters(resourceNamespace string, res
}
var cmd *exec.Cmd
if param.ValueFrom.JSONPath != "" {
args := []string{"get", resourceName, "-o", fmt.Sprintf("jsonpath='%s'", param.ValueFrom.JSONPath)}
args := []string{"get", resourceName, "-o", fmt.Sprintf("jsonpath=%s", param.ValueFrom.JSONPath)}
if resourceNamespace != "" {
args = append(args, "-n", resourceNamespace)
}
Expand Down

0 comments on commit eeac5a0

Please sign in to comment.