1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 19:28:07 +00:00

Providing the path to create a project is now deprecated.

This commit is contained in:
grossmj 2020-11-13 15:17:54 +10:30
parent 7837081eba
commit 95ea1fa636

View File

@ -101,6 +101,8 @@ class Project:
if project_id is None and path is not None:
if os.path.exists(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:
self._id = str(uuid4())