From 766456014b64142a05947cc60a331d5d0c590859 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 11 May 2017 17:59:57 +0200 Subject: [PATCH] Fix export project is looking into the wrong directory Fix #1010 --- gns3server/controller/export_project.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gns3server/controller/export_project.py b/gns3server/controller/export_project.py index 6f3f6556..954fae00 100644 --- a/gns3server/controller/export_project.py +++ b/gns3server/controller/export_project.py @@ -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))