mirror of
https://github.com/minio/minio.git
synced 2025-11-10 14:09:48 -05:00
Fix logger and audit http endpoint config lookup
This commit is contained in:
5
pkg/env/env.go
vendored
5
pkg/env/env.go
vendored
@@ -27,7 +27,10 @@ func Lookup(key string) (string, bool) { return os.LookupEnv(key) }
|
||||
func List(prefix string) (envs []string) {
|
||||
for _, env := range os.Environ() {
|
||||
if strings.HasPrefix(env, prefix) {
|
||||
envs = append(envs, env)
|
||||
values := strings.SplitN(env, "=", 2)
|
||||
if len(values) == 2 {
|
||||
envs = append(envs, values[0])
|
||||
}
|
||||
}
|
||||
}
|
||||
return envs
|
||||
|
||||
Reference in New Issue
Block a user