mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-23 23:38:21 +00:00
Raise error if image are not avaible on main server during export
Fix https://github.com/GNS3/gns3-gui/issues/1928
This commit is contained in:
parent
233a5fbed4
commit
2c0fb0d016
@ -191,3 +191,5 @@ def _export_images(project, image, z):
|
||||
arcname = os.path.join("images", directory, os.path.basename(image))
|
||||
z.write(path, arcname)
|
||||
break
|
||||
else:
|
||||
raise aiohttp.web.HTTPConflict(text="Topology could not be exported because the image {} is not available. If you use multiple server, we need a copy of the image on the main server.".format(path))
|
||||
|
Loading…
Reference in New Issue
Block a user