1
0
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:
Julien Duponchelle 2017-03-14 18:00:16 +01:00
parent 233a5fbed4
commit 2c0fb0d016
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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))