Skip to content

Commit

Permalink
pkg/option: do not log warnings if flag is not set
Browse files Browse the repository at this point in the history
The condition was not correct, this commit should fix it.

Fixes: e41b965 ("pkg/option: ignore warnings if flags are not set")
Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm authored and tgraf committed Apr 6, 2020
1 parent 6bada02 commit 41e2aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/option/config.go
Expand Up @@ -2406,7 +2406,7 @@ func (c *DaemonConfig) populateHostServicesProtos() error {
func sanitizeIntParam(paramName string, paramDefault int) int {
intParam := viper.GetInt(paramName)
if intParam <= 0 {
if !viper.IsSet(paramName) {
if viper.IsSet(paramName) {
log.WithFields(
logrus.Fields{
"parameter": paramName,
Expand Down

0 comments on commit 41e2aa9

Please sign in to comment.