honor region specified for remote targets (#11480)

fixes #11472
This commit is contained in:
Harshavardhana 2021-02-08 08:54:27 -08:00 committed by GitHub
parent 6fef4c21b9
commit 2e4d9124ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,6 +362,7 @@ func (sys *BucketTargetSys) getRemoteTargetClient(tcfg *madmin.BucketTarget) (*T
api, err := minio.New(tcfg.Endpoint, &miniogo.Options{
Creds: creds,
Secure: tcfg.Secure,
Region: tcfg.Region,
Transport: getRemoteTargetInstanceTransport,
})
if err != nil {