Import with images

This commit is contained in:
Julien Duponchelle committed 2016-07-21 17:55:37 +02:00
1 parent 0f85fbd5f2
commit 487e99bea5
4 files changed
+65 -7

No files matched your search

@@ -279,7 +279,7 @@ class ProjectHandler:
if not packet:
break
temp.write(packet)
project = yield from import_project(controller, request.match_info["project_id"], temp, gns3vm=bool(int(request.GET.get("gns3vm", "1"))))
project = yield from import_project(controller, request.match_info["project_id"], temp)
except OSError as e:
raise aiohttp.web.HTTPInternalServerError(text="Could not import the project: {}".format(e))
@@ -367,5 +367,3 @@ class ProjectHandler:
raise aiohttp.web.HTTPNotFound()
except PermissionError:
raise aiohttp.web.HTTPForbidden()