From 9ffc6a57370243b007b058f7bb788f06dd331ec5 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 28 Sep 2022 14:48:53 -0400 Subject: [PATCH] mypy --- src/spiffworkflow_backend/routes/process_api_blueprint.py | 2 +- src/spiffworkflow_backend/services/service_task_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spiffworkflow_backend/routes/process_api_blueprint.py b/src/spiffworkflow_backend/routes/process_api_blueprint.py index 67b97bb9..6cbc9be2 100644 --- a/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -1123,7 +1123,7 @@ def get_secret_value(key: str) -> Optional[str]: def secret_list( page: int = 1, per_page: int = 100, -) -> list: +) -> Response: secrets = SecretModel.query\ .order_by(SecretModel.key)\ .join(UserModel)\ diff --git a/src/spiffworkflow_backend/services/service_task_service.py b/src/spiffworkflow_backend/services/service_task_service.py index 910c740f..37c22c3d 100644 --- a/src/spiffworkflow_backend/services/service_task_service.py +++ b/src/spiffworkflow_backend/services/service_task_service.py @@ -23,7 +23,7 @@ class ServiceTaskDelegate: secret_prefix = "secret:" # noqa: S105 if value.startswith(secret_prefix): key = value.removeprefix(secret_prefix) - value = SecretService().get_secret(key) + value = SecretService().get_secret_value(key) return value @staticmethod