From 6e5c61d9175460c6f7e23ffb670ccde277c73c9d Mon Sep 17 00:00:00 2001 From: Ritesh H Shukla Date: Mon, 22 Feb 2021 13:41:40 -0800 Subject: [PATCH] Skip printing error if empty for reporting bandwidth (#11606) --- pkg/madmin/bandwidth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/madmin/bandwidth.go b/pkg/madmin/bandwidth.go index 3039cc94b..e0d0da824 100644 --- a/pkg/madmin/bandwidth.go +++ b/pkg/madmin/bandwidth.go @@ -29,8 +29,8 @@ import ( // Report includes the bandwidth report or the error encountered. type Report struct { - Report bandwidth.Report - Err error + Report bandwidth.Report `json:"report"` + Err error `json:"error,omitempty"` } // GetBucketBandwidth - Gets a channel reporting bandwidth measurements for replication buckets. If no buckets