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:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user