Include ARN in "replicate list" output (#5215)

The "replicate resync start" command requires the remote bucket ARN.
This is currently difficult to obtain and requires picking through the
output of "replicate list --json". Worse still, the JSON output doesn't
contain the human-readable host for the bucket, making it difficult to
know that you've got the correct one.

This change solves the issue by including the ARN in the default list
output.
This commit is contained in:
Menno Finlay-Smits
2025-06-25 08:26:44 -07:00
committed by GitHub
parent 3c9df3f2ea
commit 039be57dd2
+1
View File
@@ -111,6 +111,7 @@ func (l replicateListMessage) String() string {
sb.WriteString(fmt.Sprintf(" Rule ID: %s\n", console.Colorize("Val", r.ID)))
sb.WriteString(fmt.Sprintf(" Priority: %s\n", console.Colorize("Val", r.Priority)))
sb.WriteString(fmt.Sprintf(" ARN: %s\n", console.Colorize("Val", r.Destination.Bucket)))
if r.Filter.And.Prefix != "" {
sb.WriteString(fmt.Sprintf(" Prefix: %s\n", console.Colorize("Val", r.Filter.And.Prefix)))
}