Merge pull request #376 from galal-hussein/fix_kubeletarg

Fix extra argument with multiple =
This commit is contained in:
Darren Shepherd 2019-04-26 15:57:16 -07:00 committed by GitHub
commit 50f405ddfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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