From de1be0961fbf9485f858bda116092619b081debb Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 25 Feb 2015 17:19:12 -0700 Subject: [PATCH] Do not return an error when creating the same project multiple times (for now). --- gns3server/modules/project_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/project_manager.py b/gns3server/modules/project_manager.py index 82737b2c..fa34217d 100644 --- a/gns3server/modules/project_manager.py +++ b/gns3server/modules/project_manager.py @@ -68,7 +68,9 @@ class ProjectManager: """ if project_id is not None and project_id in self._projects: - raise aiohttp.web.HTTPConflict(text="Project ID {} is already in use on this server".format(project_id)) + return self._projects[project_id] + # FIXME: should we have an error? + #raise aiohttp.web.HTTPConflict(text="Project ID {} is already in use on this server".format(project_id)) project = Project(project_id=project_id, path=path, temporary=temporary) self._projects[project.id] = project return project