fix: healing of replication config for endpoint changes (#16648)

This commit is contained in:
Poorna
2023-02-20 02:36:13 -08:00
committed by GitHub
parent 82dcfd4e10
commit 8a08861dd9
3 changed files with 197 additions and 75 deletions

View File

@@ -199,7 +199,7 @@ func (a adminAPIHandlers) SetRemoteTargetHandler(w http.ResponseWriter, r *http.
ops = madmin.GetTargetUpdateOps(r.Form)
} else {
var exists bool // true if arn exists
target.Arn, exists = globalBucketTargetSys.getRemoteARN(bucket, &target)
target.Arn, exists = globalBucketTargetSys.getRemoteARN(bucket, &target, "")
if exists && target.Arn != "" { // return pre-existing ARN
data, err := json.Marshal(target.Arn)
if err != nil {