pre commit
This commit is contained in:
parent
11a24368ba
commit
c2d67c0087
|
@ -1309,7 +1309,7 @@ def delete_secret(key: str) -> Response:
|
|||
def add_allowed_process_path(body: dict) -> Response:
|
||||
"""Get allowed process paths."""
|
||||
secret = SecretService().get_secret(body["secret_key"])
|
||||
assert secret
|
||||
assert secret # noqa: S101
|
||||
allowed_process_path = SecretService.add_allowed_process(
|
||||
secret.id, g.user.id, body["allowed_relative_path"]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue