mirror of https://github.com/k3s-io/k3s
Merge pull request #376 from galal-hussein/fix_kubeletarg
Fix extra argument with multiple =pull/402/head
commit
50f405ddfd
|
@ -120,7 +120,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