fix replicate update to check for older role ARN (#4640)

This commit is contained in:
Poorna
2023-07-19 13:11:09 -07:00
committed by GitHub
parent c5ea09b74d
commit c04a480dd3
+3
View File
@@ -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
}
}