Skip to content

Commit

Permalink
Fix parsing integer environment variables
Browse files Browse the repository at this point in the history
Was converting the key, not the value retrieved so any non-default parameters were ignored
  • Loading branch information
CaptainCodeman committed Jul 19, 2018
1 parent 4408984 commit d03c0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "+
Expand Down

0 comments on commit d03c0a7

Please sign in to comment.