1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 08:48:11 +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): if os.path.exists(path):
arcname = os.path.join("images", directory, os.path.basename(image)) arcname = os.path.join("images", directory, os.path.basename(image))
z.write(path, arcname) z.write(path, arcname)
break return
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(image))
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))