1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 21:08:55 +00:00

Do not return an error when creating the same project multiple times (for now).

This commit is contained in:
Jeremy 2015-02-25 17:19:12 -07:00
parent 54fc873be5
commit de1be0961f

View File

@ -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