From 535a9196351b65764071a27b7d68ec7497e67e55 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Mon, 15 Nov 2021 12:17:10 -0800 Subject: [PATCH] Removed value from warning about skipping flags (#4491) * Enabled skipping of unkown flags from config in parser * Added new unit test, expanded existing * Add warning back in, without value Signed-off-by: Derek Nola --- pkg/configfilearg/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/configfilearg/parser.go b/pkg/configfilearg/parser.go index 181369ab1e28..50377be9c30f 100644 --- a/pkg/configfilearg/parser.go +++ b/pkg/configfilearg/parser.go @@ -90,7 +90,7 @@ func (p *Parser) stripInvalidFlags(command string, args []string) ([]string, err if validFlags[mArg] { result = append(result, arg) } else { - logrus.Warnf("Unknown flag %s found in config.yaml, skipping\n", arg) + logrus.Warnf("Unknown flag %s found in config.yaml, skipping\n", strings.Split(arg, "=")[0]) } } return result, nil