1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-12 19:38:57 +00:00

Fix export project is looking into the wrong directory

Fix #1010
This commit is contained in:
Julien Duponchelle 2017-05-11 17:59:57 +02:00
parent f31e46e8ed
commit 766456014b
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -190,6 +190,5 @@ def _export_images(project, image, z):
if os.path.exists(path):
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))
return
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(image))