From 28f3094057ddcad078d07ee67c7dabc5bca8ea80 Mon Sep 17 00:00:00 2001 From: aoteropas <135861877+aoteropas@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:36:55 +0100 Subject: [PATCH] fix allowed change ref types environment read change the name of the variable in the if clause for the one that contains the env values. Follow the same approach that with other Env Variables --- jenkins/webhook-proxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/webhook-proxy/main.go b/jenkins/webhook-proxy/main.go index df6f58b3a..da3c2c424 100644 --- a/jenkins/webhook-proxy/main.go +++ b/jenkins/webhook-proxy/main.go @@ -204,7 +204,7 @@ func main() { var allowedChangeRefTypes []string envAllowedChangeRefTypes := strings.ToLower(os.Getenv(allowedChangeRefTypesEnvVar)) - if len(allowedChangeRefTypes) == 0 { + if len(envAllowedChangeRefTypes) == 0 { allowedChangeRefTypes = strings.Split(allowedChangeRefTypesDefault, ",") log.Println( "INFO:",