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

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 {