mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix issues when discovering images
This commit is contained in:
1 parent
466aaf5c13
commit
30f7c0ce74
3 files changed
+8
-3
No files matched your search
@@ -129,7 +129,7 @@ async def get_image(
|
||||
async def delete_image(
|
||||
image_path: str,
|
||||
images_repo: ImagesRepository = Depends(get_repository(ImagesRepository)),
|
||||
) -> None:
|
||||
) -> Response:
|
||||
"""
|
||||
Delete an image.
|
||||
"""
|
||||
@@ -159,6 +159,8 @@ async def delete_image(
|
||||
if not success:
|
||||
raise ControllerError(f"Image '{image_path}' could not be deleted")
|
||||
|
||||
return Response(status_code=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
|
||||
@router.post("/prune", status_code=status.HTTP_204_NO_CONTENT)
|
||||
async def prune_images(
|
||||
|
||||
Reference in new issue
Block a user