From 1df9b0e9e9cfd6230afdb3c34b9e406df58b4a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Loiselet?= Date: Fri, 28 Jun 2019 03:12:28 +0200 Subject: [PATCH] fix: enabled '=' in a value for --state-values-set (#722) This adds the possibility to use a "=" in the parameters passed to --state-values-set previous comportment: `helmfile --state-values-set 'test="abcde==fg",test2="abcde"'` => outputs 'test="abcde",test2="abcde"' new comportment: `helmfile --state-values-set 'test="abcde==fg",test2="abcde"'` => outputs 'test="abcde==fg",test2="abcde"' --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1096cdb7..3398a61a 100644 --- a/main.go +++ b/main.go @@ -419,7 +419,7 @@ func NewUrfaveCliConfigImpl(c *cli.Context) (configImpl, error) { for i := range optsSet { ops := strings.Split(optsSet[i], ",") for j := range ops { - op := strings.Split(ops[j], "=") + op := strings.SplitN(ops[j], "=", 2) k := strings.Split(op[0], ".") v := op[1]