diff --git a/internal/dag/builder.go b/internal/dag/builder.go index ebce552a..47975239 100644 --- a/internal/dag/builder.go +++ b/internal/dag/builder.go @@ -426,13 +426,10 @@ func parseParams( // stringifyParam converts a paramPair to a string representation. func stringifyParam(param paramPair) string { - escapedValue := strings.ReplaceAll(param.value, `"`, `\"`) - quotedValue := fmt.Sprintf(`"%s"`, escapedValue) - if param.name != "" { - return fmt.Sprintf("%s=%s", param.name, quotedValue) + return fmt.Sprintf("%s=%s", param.name, param.value) } - return quotedValue + return param.value } // processParams parses and processes the parameters for the DAG. diff --git a/internal/dag/builder_test.go b/internal/dag/builder_test.go index 784df0e6..94fa8fa7 100644 --- a/internal/dag/builder_test.go +++ b/internal/dag/builder_test.go @@ -156,12 +156,12 @@ func TestBuilder_BuildParams(t *testing.T) { "Y": "foo", "Z": "A B C", "1": "first", - "2": `P1="foo"`, - "3": `P2="BAR"`, - "4": `P3="BAR"`, - "5": `X="bar"`, - "6": `Y="foo"`, - "7": `Z="A B C"`, + "2": `P1=foo`, + "3": `P2=BAR`, + "4": `P3=BAR`, + "5": `X=bar`, + "6": `Y=foo`, + "7": `Z=A B C`, }, }, }