mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Fix the issue of being unable to read legacy scanner configurations
This commit is contained in:
parent
0e9854372e
commit
f0482fbe7f
@ -149,7 +149,7 @@ func LookupConfig(kvs config.KVS) (cfg Config, err error) {
|
||||
// has not been changed from its "default" value, if it has been changed honor new settings.
|
||||
if kvs.GetWithDefault(Speed, DefaultKVS) == "default" {
|
||||
if kvs.Get(Delay) != "" && kvs.Get(MaxWait) != "" {
|
||||
if err = lookupDeprecatedScannerConfig(kvs, &cfg); err != nil {
|
||||
if err = lookupDeprecatedScannerConfig(kvs, &cfg); err == nil {
|
||||
return cfg, err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user