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"'
This commit is contained in:
Clément Loiselet 2019-06-28 03:12:28 +02:00 committed by KUOKA Yusuke
parent b82f77ee50
commit 1df9b0e9e9
1 changed files with 1 additions and 1 deletions

View File

@ -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]