From c04a480dd37f1626407581ee6a1c3dc1cf3eb616 Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 19 Jul 2023 16:11:09 -0400 Subject: [PATCH] fix replicate update to check for older role ARN (#4640) --- cmd/replicate-update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/replicate-update.go b/cmd/replicate-update.go index 3bd139e4..d04dfec2 100644 --- a/cmd/replicate-update.go +++ b/cmd/replicate-update.go @@ -309,6 +309,9 @@ func mainReplicateUpdate(cliCtx *cli.Context) error { for _, rule := range rcfg.Rules { if rule.ID == cliCtx.String("id") { arn = rule.Destination.Bucket + if rcfg.Role != "" { + arn = rcfg.Role + } break } }