fix replicate status display for older replication config (#4957)

that specified ARN in the Role field. This has since moved to
Destination.Bucket
This commit is contained in:
Poorna
2024-06-12 07:34:03 -07:00
committed by GitHub
parent a472e3d9ed
commit e56457bc09
+2 -2
View File
@@ -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
}