mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Providing the path to create a project is now deprecated.
This commit is contained in:
parent
7837081eba
commit
95ea1fa636
@ -101,6 +101,8 @@ class Project:
|
|||||||
if project_id is None and path is not None:
|
if project_id is None and path is not None:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
raise ControllerForbiddenError("The path {} already exists".format(path))
|
raise ControllerForbiddenError("The path {} already exists".format(path))
|
||||||
|
else:
|
||||||
|
raise ControllerForbiddenError("Providing a path to create a new project is deprecated.")
|
||||||
|
|
||||||
if project_id is None:
|
if project_id is None:
|
||||||
self._id = str(uuid4())
|
self._id = str(uuid4())
|
||||||
|
Loading…
Reference in New Issue
Block a user