From 72d2edc0cb2514dc2052e0e72d0953d23bd54351 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Fri, 19 Apr 2019 01:59:37 +0200 Subject: [PATCH] Fix extra argument with multiple = --- pkg/daemons/config/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/daemons/config/types.go b/pkg/daemons/config/types.go index 577f26eb3b..22b859f0ea 100644 --- a/pkg/daemons/config/types.go +++ b/pkg/daemons/config/types.go @@ -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