Unverified Commit 50f405dd authored by Darren Shepherd's avatar Darren Shepherd Committed by GitHub

Merge pull request #376 from galal-hussein/fix_kubeletarg

Fix extra argument with multiple =
parents 39e2e45c 72d2edc0
...@@ -120,7 +120,7 @@ func (a ArgString) String() string { ...@@ -120,7 +120,7 @@ func (a ArgString) String() string {
func GetArgsList(argsMap map[string]string, extraArgs []string) []string { func GetArgsList(argsMap map[string]string, extraArgs []string) []string {
// add extra args to args map to override any default option // add extra args to args map to override any default option
for _, arg := range extraArgs { for _, arg := range extraArgs {
splitArg := strings.Split(arg, "=") splitArg := strings.SplitN(arg, "=", 2)
if len(splitArg) < 2 { if len(splitArg) < 2 {
argsMap[splitArg[0]] = "true" argsMap[splitArg[0]] = "true"
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment