From 18ca01fed9a68571a31b68322ab00e5f877ac816 Mon Sep 17 00:00:00 2001 From: James Ward Date: Sun, 30 Jun 2024 02:50:57 -0400 Subject: [PATCH] fix: include region when initializing storage the `api_archive.storage` module isn't pulling in the region as expected which causes the region to be ignored in some cases this adds the region back similar to the `codecov-api` repo --- shared/api_archive/storage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/api_archive/storage.py b/shared/api_archive/storage.py index 1fc5bceb4..fa7f7ab4e 100644 --- a/shared/api_archive/storage.py +++ b/shared/api_archive/storage.py @@ -29,6 +29,8 @@ def __init__(self, in_config=None): self.minio_config["iam_auth"] = False if "iam_endpoint" not in self.minio_config: self.minio_config["iam_endpoint"] = None + if "region" not in self.minio_config: + self.minio_config["region"] = None if not MINIO_CLIENT: MINIO_CLIENT = self.init_minio_client( @@ -39,6 +41,7 @@ def __init__(self, in_config=None): self.minio_config["verify_ssl"], self.minio_config["iam_auth"], self.minio_config["iam_endpoint"], + self.minio_config["region"], ) log.info("----- created minio_client: ---- ") self.minio_client = MINIO_CLIENT