mirror of
https://github.com/minio/minio.git
synced 2025-11-25 12:06:10 -05:00
fix: set appropriate defaults when new keys added (#8795)
A new key was added in identity_openid recently required explicitly for client to set the optional value without that it would be empty, handle this appropriately. Fixes #8787
This commit is contained in:
4
cmd/config/cache/lookup.go
vendored
4
cmd/config/cache/lookup.go
vendored
@@ -121,9 +121,7 @@ func LookupConfig(kvs config.KVS) (Config, error) {
|
||||
return cfg, config.ErrInvalidCacheQuota(err)
|
||||
}
|
||||
cfg.Quota = cfg.MaxUse
|
||||
}
|
||||
|
||||
if quotaStr := env.Get(EnvCacheQuota, kvs.Get(Quota)); quotaStr != "" {
|
||||
} else if quotaStr := env.Get(EnvCacheQuota, kvs.Get(Quota)); quotaStr != "" {
|
||||
cfg.Quota, err = strconv.Atoi(quotaStr)
|
||||
if err != nil {
|
||||
return cfg, config.ErrInvalidCacheQuota(err)
|
||||
|
||||
Reference in New Issue
Block a user