fix: browser should listBuckets from etcd in global federation (#8760)

This commit is contained in:
Harshavardhana 2020-01-06 19:33:00 -08:00 committed by Nitish Tiwari
parent 933c60bc3a
commit b123be5612

View File

@ -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)