Testing
This commit is contained in:
parent
ec63346c8a
commit
7bf2a59838
@ -165,8 +165,10 @@ func Load(configFile string) Configuration {
|
||||
key := strings.Replace(strings.ToLower(strings.TrimPrefix(s, "RDPGW_")), "__", ".", -1)
|
||||
key = ToCamel(key)
|
||||
|
||||
newVal := strings.Split(strings.Trim(v, " "), " ")
|
||||
log.Printf("Setting %s to %v", key, newVal)
|
||||
// handle the case where the value is a list
|
||||
return key, strings.Split(strings.Trim(v, " "), " ")
|
||||
return key, newVal
|
||||
}), nil); err != nil {
|
||||
log.Fatalf("Error loading config from environment: %v", err)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user