mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Option to prune images when deleting template.
This commit is contained in:
1 parent
bf9a3aee20
commit
332fa47b50
4 files changed
+44
-4
No files matched your search
@@ -159,7 +159,7 @@ class TemplatesService:
|
||||
|
||||
image = await self._templates_repo.get_image(image_name)
|
||||
if not image or not os.path.exists(image.path):
|
||||
raise ControllerNotFoundError(f"Image {image_name} could not be found")
|
||||
raise ControllerNotFoundError(f"Image '{image_name}' could not be found")
|
||||
return image
|
||||
|
||||
async def _find_images(self, template_type: str, settings: dict) -> List[models.Image]:
|
||||
|
||||
Reference in new issue
Block a user