From 670fd786ea305bee9c27aa23ae8e2df285c0bdcc Mon Sep 17 00:00:00 2001 From: Zbynek Roubalik Date: Tue, 23 Nov 2021 13:12:40 +0100 Subject: [PATCH] fix Signed-off-by: Zbynek Roubalik --- pkg/util/env_resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/env_resolver.go b/pkg/util/env_resolver.go index 761503465dd..4c2a3086922 100644 --- a/pkg/util/env_resolver.go +++ b/pkg/util/env_resolver.go @@ -8,7 +8,7 @@ import ( func ResolveOsEnvInt(envName string, defaultValue int) (int, error) { valueStr, found := os.LookupEnv(envName) - if found { + if found && valueStr != "" { return strconv.Atoi(valueStr) }