mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-13 19:28:55 +00:00
fix: parse flags error handling (#4775)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
ac8f4ba59c
commit
6e64d4fb1a
1 changed files with 1 additions and 2 deletions
|
@ -123,8 +123,7 @@ func parseFlags() error {
|
|||
// DEPRECATED: remove in 1.9
|
||||
flag.BoolVar(&splitPolicyReport, "splitPolicyReport", false, "This is deprecated, please don't use it, will be removed in v1.9.")
|
||||
if err := flag.Set("v", "2"); err != nil {
|
||||
fmt.Printf("failed to set log level: %s", err.Error())
|
||||
os.Exit(1)
|
||||
return err
|
||||
}
|
||||
flag.Parse()
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue