diff --git a/minio_storage/storage.py b/minio_storage/storage.py index 5e1368c..0ea9eab 100644 --- a/minio_storage/storage.py +++ b/minio_storage/storage.py @@ -113,7 +113,7 @@ def _create_base_url_client(client: minio.Minio, bucket_name: str, base_url: str secure=base_url_parts.scheme == "https", # The bucket region may be auto-detected by client (via an HTTP # request), so don't just use client._region - region=client._get_region(bucket_name, None), + region=client._get_region(bucket_name), http_client=client._http, ) diff --git a/pyproject.toml b/pyproject.toml index 2e05f19..fb7dfc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ license = {file = "LICENSE"} requires-python = ">=3.8" dependencies = [ "django>=3.2", - "minio>=7.1.12", + "minio>=7.1.16", ] classifiers=[ "Development Status :: 4 - Beta", diff --git a/tests/test_app/tests/settings_tests.py b/tests/test_app/tests/settings_tests.py index b426744..17158c5 100644 --- a/tests/test_app/tests/settings_tests.py +++ b/tests/test_app/tests/settings_tests.py @@ -10,10 +10,10 @@ class SettingsTests(BaseTestMixin, TestCase): ) def test_settings_with_region(self): ms = MinioMediaStorage() - region = ms.client._get_region(self.bucket_name("tests-media"), None) + region = ms.client._get_region(self.bucket_name("tests-media")) self.assertEqual(region, "eu-central-666") def test_settings_without_region(self): ms = MinioMediaStorage() - region = ms.client._get_region(self.bucket_name("tests-media"), None) + region = ms.client._get_region(self.bucket_name("tests-media")) self.assertEqual(region, "us-east-1")