mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Do not return an error when creating the same project multiple times (for now).
This commit is contained in:
parent
54fc873be5
commit
de1be0961f
@ -68,7 +68,9 @@ class ProjectManager:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if project_id is not None and project_id in self._projects:
|
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)
|
project = Project(project_id=project_id, path=path, temporary=temporary)
|
||||||
self._projects[project.id] = project
|
self._projects[project.id] = project
|
||||||
return project
|
return project
|
||||||
|
Loading…
Reference in New Issue
Block a user