From d03c0a724b7ff72422c87018e7a8adab48ec08ac Mon Sep 17 00:00:00 2001 From: Simon Green Date: Thu, 19 Jul 2018 10:13:59 -0600 Subject: [PATCH] Fix parsing integer environment variables Was converting the key, not the value retrieved so any non-default parameters were ignored --- properties.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties.go b/properties.go index 366ede5..7a073d8 100644 --- a/properties.go +++ b/properties.go @@ -398,7 +398,7 @@ func getIntVar(key string, defaultVal int) int { valueInt := defaultVal if valueString != "" { - i, err := strconv.Atoi(key) + i, err := strconv.Atoi(valueString) if err != nil { logfWarn("Failed to parse env property %s: %s is not "+