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(
|
def secret_list(
|
||||||
page: int = 1,
|
page: int = 1,
|
||||||
per_page: int = 100,
|
per_page: int = 100,
|
||||||
) -> list:
|
) -> Response:
|
||||||
secrets = SecretModel.query\
|
secrets = SecretModel.query\
|
||||||
.order_by(SecretModel.key)\
|
.order_by(SecretModel.key)\
|
||||||
.join(UserModel)\
|
.join(UserModel)\
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ServiceTaskDelegate:
|
||||||
secret_prefix = "secret:" # noqa: S105
|
secret_prefix = "secret:" # noqa: S105
|
||||||
if value.startswith(secret_prefix):
|
if value.startswith(secret_prefix):
|
||||||
key = value.removeprefix(secret_prefix)
|
key = value.removeprefix(secret_prefix)
|
||||||
value = SecretService().get_secret(key)
|
value = SecretService().get_secret_value(key)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue