Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change python version 3.10 to 3.9 #33

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
)
Loading