mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -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)
|
r.Header.Set("delimiter", SlashSeparator)
|
||||||
|
|
||||||
// If etcd, dns federation configured list buckets from etcd.
|
// If etcd, dns federation configured list buckets from etcd.
|
||||||
if globalDNSConfig != nil {
|
if globalDNSConfig != nil && globalBucketFederation {
|
||||||
dnsBuckets, err := globalDNSConfig.List()
|
dnsBuckets, err := globalDNSConfig.List()
|
||||||
if err != nil && err != dns.ErrNoEntriesFound {
|
if err != nil && err != dns.ErrNoEntriesFound {
|
||||||
return toJSONError(ctx, err)
|
return toJSONError(ctx, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user