Skip to content

Commit

Permalink
fix replicate status display for older replication config (#4957)
Browse files Browse the repository at this point in the history
that specified ARN in the Role field. This has since moved to
Destination.Bucket
  • Loading branch information
poornas authored Jun 12, 2024
1 parent a472e3d commit e7c9a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/replicate-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e7c9a73

Please sign in to comment.