diff --git a/object_store_factory/src/aws.rs b/object_store_factory/src/aws.rs index ecd4f2bd..f4d3199b 100644 --- a/object_store_factory/src/aws.rs +++ b/object_store_factory/src/aws.rs @@ -205,7 +205,7 @@ pub async fn add_amazon_s3_specific_options( url: &Url, options: &mut HashMap, ) { - if !options.contains_key(&AmazonS3ConfigKey::Bucket) + if !options.contains_key(&AmazonS3ConfigKey::Region) && !options.contains_key(&AmazonS3ConfigKey::Endpoint) { let region = detect_region(url).await.unwrap();