Skip to content

Commit

Permalink
[Misc] Rename env in runtime (#176)
Browse files Browse the repository at this point in the history
* misc: rename env variable name
  • Loading branch information
brosoul authored Sep 13, 2024
1 parent de7fc99 commit e2ad163
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions python/aibrix/aibrix/downloader/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def _parse_bucket_info_from_uri(uri: str) -> Tuple[str, str]:
class S3Downloader(BaseDownloader):
def __init__(self, model_uri):
model_name = envs.DOWNLOADER_MODEL_NAME
ak = envs.DOWNLOADER_AWS_ACCESS_KEY
sk = envs.DOWNLOADER_AWS_SECRET_KEY
endpoint = envs.DOWNLOADER_AWS_ENDPOINT
ak = envs.DOWNLOADER_AWS_ACCESS_KEY_ID
sk = envs.DOWNLOADER_AWS_SECRET_ACCESS_KEY
endpoint = envs.DOWNLOADER_AWS_ENDPOINT_URL
region = envs.DOWNLOADER_AWS_REGION
bucket_name, bucket_path = _parse_bucket_info_from_uri(model_uri)

Expand Down
6 changes: 3 additions & 3 deletions python/aibrix/aibrix/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def _parse_int_or_none(value: Optional[str]) -> Optional[int]:
DOWNLOADER_TOS_ENABLE_CRC = _is_true(os.getenv("TOS_ENABLE_CRC"))

# Downloader AWS S3 Envs
DOWNLOADER_AWS_ACCESS_KEY = os.getenv("AWS_ACCESS_KEY_ID")
DOWNLOADER_AWS_SECRET_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
DOWNLOADER_AWS_ENDPOINT = os.getenv("AWS_ENDPOINT_URL")
DOWNLOADER_AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
DOWNLOADER_AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
DOWNLOADER_AWS_ENDPOINT_URL = os.getenv("AWS_ENDPOINT_URL")
DOWNLOADER_AWS_REGION = os.getenv("AWS_REGION")

# Metric Standardizing Related Config
Expand Down

0 comments on commit e2ad163

Please sign in to comment.