Option to prune images when deleting template.

This commit is contained in:
grossmj committed 2021-08-23 10:27:10 +09:30
1 parent bf9a3aee20
commit 332fa47b50
4 files changed
+44 -4

No files matched your search

+1 -1
View File
@@ -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]: