From 27f8603ba2c8624300790865590466d8068dafdb Mon Sep 17 00:00:00 2001 From: Ilias Katsakioris Date: Thu, 21 Feb 2019 04:28:22 +0200 Subject: [PATCH] Remove extra quotes around output parameter value 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 --- workflow/executor/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/executor/resource.go b/workflow/executor/resource.go index fa671798e5ec..e28886bbdb3b 100644 --- a/workflow/executor/resource.go +++ b/workflow/executor/resource.go @@ -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) }