Skip to content

Commit ce0e2e9

Browse files
committed
tolerate multiple =s in a parameter value
1 parent 84a8c52 commit ce0e2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/cli/cmd/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func RunProcess(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []
302302
func injectUserVars(values []string, t *templateapi.Template) []error {
303303
var errors []error
304304
for _, keypair := range values {
305-
p := strings.Split(keypair, "=")
305+
p := strings.SplitN(keypair, "=")
306306
if len(p) != 2 {
307307
errors = append(errors, fmt.Errorf("invalid parameter assignment in %q: %q\n", t.Name, keypair))
308308
}

0 commit comments

Comments
 (0)