Skip to content

Commit

Permalink
update minio to 7.1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
ettoreleandrotognoli authored and thomasf committed Aug 30, 2023
1 parent c01f000 commit 0d52d5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion minio_storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_app/tests/settings_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 0d52d5d

Please sign in to comment.