mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Return all stats in SiteReplicationStatus API if options unset (#14207)
This commit is contained in:
parent
e2a9949b16
commit
0f88cdc80e
@ -339,7 +339,14 @@ func (a adminAPIHandlers) SiteReplicationStatus(w http.ResponseWriter, r *http.R
|
||||
return
|
||||
}
|
||||
opts := getSRStatusOptions(r)
|
||||
|
||||
// default options to all if status options are unset for backward compatibility
|
||||
var dfltOpts madmin.SRStatusOptions
|
||||
if opts == dfltOpts {
|
||||
opts.Buckets = true
|
||||
opts.Users = true
|
||||
opts.Policies = true
|
||||
opts.Groups = true
|
||||
}
|
||||
info, err := globalSiteReplicationSys.SiteReplicationStatus(ctx, objectAPI, opts)
|
||||
if err != nil {
|
||||
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
|
||||
|
Loading…
Reference in New Issue
Block a user