From d78a3982164d125aa69fdcd3769297ed9d9530c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Lizardo?= Date: Tue, 19 Nov 2024 13:38:29 +0100 Subject: [PATCH] Fix region detection logic --- object_store_factory/src/aws.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();