From e7c9a733c680fe62066d24e8718f81938b4f6606 Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 12 Jun 2024 10:34:03 -0400 Subject: [PATCH] fix replicate status display for older replication config (#4957) that specified ARN in the Role field. This has since moved to Destination.Bucket --- cmd/replicate-status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/replicate-status.go b/cmd/replicate-status.go index 87243e9f86..991bc2eee8 100644 --- a/cmd/replicate-status.go +++ b/cmd/replicate-status.go @@ -116,7 +116,7 @@ func (s replicateStatusMessage) String() string { for arn, st := range rs.Stats { // Remove stale ARNs from stats staleARN := true for _, r := range s.cfg.Rules { - if r.Destination.Bucket == arn { + if r.Destination.Bucket == arn || s.cfg.Role == arn { staleARN = false break } @@ -178,7 +178,7 @@ func (s replicateStatusMessage) String() string { } staleARN = true for _, r := range s.cfg.Rules { - if r.Destination.Bucket == arn { + if r.Destination.Bucket == arn || s.cfg.Role == arn { staleARN = false break }