mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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 <derek.nola@suse.com>
This commit is contained in:
parent
c77efe64e1
commit
535a919635
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user