From fe62cffcd73778f4886d500d7b8cc203bd69bfb1 Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Wed, 18 Dec 2024 20:26:32 +0800 Subject: [PATCH] fix: typo --- server/aws/service.py | 2 +- server/core/service/user_llm_token.py | 2 +- server/github_app/router.py | 2 +- server/github_app/utils.py | 2 +- server/utils/private_key/s3.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/aws/service.py b/server/aws/service.py index 175f750b..d451b317 100644 --- a/server/aws/service.py +++ b/server/aws/service.py @@ -10,7 +10,7 @@ from .constants import S3_TEMP_BUCKET_NAME, STATIC_URL from .exceptions import UploadError -REGIN_NAME = get_env_variable("AWS_REGION") +REGION_NAME = get_env_variable("AWS_REGION") STATIC_SECRET_NAME = get_env_variable("STATIC_SECRET_NAME") STATIC_KEYPAIR_ID = get_env_variable("STATIC_KEYPAIR_ID") diff --git a/server/core/service/user_llm_token.py b/server/core/service/user_llm_token.py index 7d72dd2b..669696f6 100644 --- a/server/core/service/user_llm_token.py +++ b/server/core/service/user_llm_token.py @@ -10,7 +10,7 @@ from utils.rsa import decrypt_token, encrypt_token from utils.sanitize_token import sanitize_token -REGIN_NAME = get_env_variable("AWS_REGION") +REGION_NAME = get_env_variable("AWS_REGION") LLM_TOKEN_SECRET_NAME = get_env_variable("LLM_TOKEN_SECRET_NAME") LLM_TOKEN_PUBLIC_NAME = get_env_variable("LLM_TOKEN_PUBLIC_NAME") diff --git a/server/github_app/router.py b/server/github_app/router.py index f2a4e3af..a05fb1d7 100644 --- a/server/github_app/router.py +++ b/server/github_app/router.py @@ -25,7 +25,7 @@ ) from petercat_utils import get_env_variable -REGIN_NAME = get_env_variable("AWS_REGION") +REGION_NAME = get_env_variable("AWS_REGION") X_GITHUB_SECRET_NAME = get_env_variable("X_GITHUB_SECRET_NAME") APP_ID = get_env_variable("X_GITHUB_APP_ID") diff --git a/server/github_app/utils.py b/server/github_app/utils.py index bc68cf36..abc51867 100644 --- a/server/github_app/utils.py +++ b/server/github_app/utils.py @@ -11,7 +11,7 @@ APP_ID = get_env_variable("X_GITHUB_APP_ID") X_GITHUB_SECRET_NAME = get_env_variable("X_GITHUB_SECRET_NAME") -REGIN_NAME = get_env_variable("AWS_REGION") +REGION_NAME = get_env_variable("AWS_REGION") def get_jwt(): diff --git a/server/utils/private_key/s3.py b/server/utils/private_key/s3.py index df215623..1180f7e2 100644 --- a/server/utils/private_key/s3.py +++ b/server/utils/private_key/s3.py @@ -3,13 +3,13 @@ from petercat_utils import get_env_variable from utils.private_key.base import BasePrivateKeyProvider -REGIN_NAME = get_env_variable("AWS_REGION") +REGION_NAME = get_env_variable("AWS_REGION") class S3PrivateKeyProvider(BasePrivateKeyProvider): def get_private_key(self, secret_id: str) -> str: session = boto3.session.Session() - client = session.client(service_name="secretsmanager", region_name=REGIN_NAME) + client = session.client(service_name="secretsmanager", region_name=REGION_NAME) try: get_secret_value_response = client.get_secret_value(SecretId=secret_id) except ClientError as e: