mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Do not automatically install appliance after uploading image
This commit is contained in:
1 parent
01a9e83f08
commit
05d2579907
2 files changed
+5
-3
No files matched your search
@@ -181,8 +181,10 @@ class TemplatesService:
|
||||
async def _find_image(self, image_path: str):
|
||||
|
||||
image = await self._templates_repo.get_image(image_path)
|
||||
if not image or not os.path.exists(image.path):
|
||||
raise ControllerNotFoundError(f"Image '{image_path}' could not be found")
|
||||
if not image:
|
||||
raise ControllerNotFoundError(f"Image '{image.filename}' could not be found in the controller database")
|
||||
if not os.path.exists(image.path):
|
||||
raise ControllerNotFoundError(f"Image '{image.path}' could not be found on disk")
|
||||
return image
|
||||
|
||||
async def _find_images(self, template_type: str, settings: dict) -> List[models.Image]:
|
||||
|
||||
Reference in new issue
Block a user