From 5531a576d17c804496e724d1ead9915b7d992170 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 5 Apr 2016 19:23:37 +0200 Subject: [PATCH] Import create project if not exists (GNS3 VM just need an UUID) --- gns3server/handlers/api/project_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/handlers/api/project_handler.py b/gns3server/handlers/api/project_handler.py index b28d67b5..24dcc7da 100644 --- a/gns3server/handlers/api/project_handler.py +++ b/gns3server/handlers/api/project_handler.py @@ -391,7 +391,7 @@ class ProjectHandler: pm = ProjectManager.instance() project_id = request.match_info["project_id"] - project = pm.get_project(project_id) + project = pm.create_project(project_id=project_id) # We write the content to a temporary location # and after extract all. It could be more optimal to stream