Delete Azure Vault secrets async (#3716)
This commit is contained in:
committed by
GitHub
parent
ef3167cb07
commit
d6bb3de2c5
@@ -205,6 +205,7 @@ async def create_credential(
|
||||
include_in_schema=False,
|
||||
)
|
||||
async def delete_credential(
|
||||
background_tasks: BackgroundTasks,
|
||||
credential_id: str = Path(
|
||||
...,
|
||||
description="The unique identifier of the credential to delete",
|
||||
@@ -226,6 +227,9 @@ async def delete_credential(
|
||||
|
||||
await credential_service.delete_credential(credential)
|
||||
|
||||
# Schedule background cleanup if the service implements it
|
||||
background_tasks.add_task(credential_service.post_delete_credential_item, credential.item_id)
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user