mirror of https://github.com/k3s-io/k3s
Fix extra argument with multiple =
parent
4af06882b6
commit
72d2edc0cb
|
@ -119,7 +119,7 @@ func (a ArgString) String() string {
|
|||
func GetArgsList(argsMap map[string]string, extraArgs []string) []string {
|
||||
// add extra args to args map to override any default option
|
||||
for _, arg := range extraArgs {
|
||||
splitArg := strings.Split(arg, "=")
|
||||
splitArg := strings.SplitN(arg, "=", 2)
|
||||
if len(splitArg) < 2 {
|
||||
argsMap[splitArg[0]] = "true"
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue