mypy
This commit is contained in:
parent
c0512062b5
commit
9ffc6a5737
|
@ -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)\
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue