mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: browser should listBuckets from etcd in global federation (#8760)
This commit is contained in:
parent
933c60bc3a
commit
b123be5612
@ -306,7 +306,7 @@ func (web *webAPIHandlers) ListBuckets(r *http.Request, args *WebGenericArgs, re
|
||||
r.Header.Set("delimiter", SlashSeparator)
|
||||
|
||||
// If etcd, dns federation configured list buckets from etcd.
|
||||
if globalDNSConfig != nil {
|
||||
if globalDNSConfig != nil && globalBucketFederation {
|
||||
dnsBuckets, err := globalDNSConfig.List()
|
||||
if err != nil && err != dns.ErrNoEntriesFound {
|
||||
return toJSONError(ctx, err)
|
||||
|
Loading…
Reference in New Issue
Block a user