Skip to content

Commit

Permalink
fix: change python version 3.10 to 3.9
Browse files Browse the repository at this point in the history
Signed-off-by: jcj <[email protected]>
  • Loading branch information
ggildong committed Jan 16, 2025
1 parent e3e2984 commit 439d0a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.9-slim

ENV PYTHONUNBUFFERED 1
ENV SPACEONE_PORT 50051
Expand Down
19 changes: 9 additions & 10 deletions src/plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,12 @@ def _create_init_metadata(provider: str) -> dict:


def _check_secret_data(provider: str, secret_data: dict) -> None:
match provider:
case "aws" | "azure" | "google_cloud":
missing_keys = [key for key in REQUIRED_SECRET_KEYS[provider] if key not in secret_data]
if missing_keys:
for key in missing_keys:
raise ERROR_REQUIRED_PARAMETER(key=f"secret_data.{key}")
case _:
raise ERROR_INVALID_PARAMETER(
key="options.provider", reason="Not supported provider."
)
if provider in ["aws", "azure", "google_cloud"]:
missing_keys = [key for key in REQUIRED_SECRET_KEYS[provider] if key not in secret_data]
if missing_keys:
for key in missing_keys:
raise ERROR_REQUIRED_PARAMETER(key=f"secret_data.{key}")
else:
raise ERROR_INVALID_PARAMETER(
key="options.provider", reason="Not supported provider."
)

0 comments on commit 439d0a2

Please sign in to comment.