oracle object storage: fix object storage endpoint for custom endpoints

This commit is contained in:
Manoj Ghosh 2023-12-15 02:13:35 -08:00 committed by GitHub
parent c69eb84573
commit 743ea6ac26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,9 @@ func newObjectStorageClient(ctx context.Context, opt *Options) (*objectstorage.O
if opt.Region != "" {
client.SetRegion(opt.Region)
}
if opt.Endpoint != "" {
client.Host = opt.Endpoint
}
modifyClient(ctx, opt, &client.BaseClient)
return &client, err
}