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

master
Harshavardhana 5 years ago committed by Nitish Tiwari
parent 933c60bc3a
commit b123be5612
  1. 2
      cmd/web-handlers.go

@ -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…
Cancel
Save