mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Do not require the local server param to open a .gns3 file. Fixes https://github.com/GNS3/gns3-gui/issues/2421 Ref #1460
This commit is contained in:
1 parent
16fcf6141e
commit
ab4d964d69
3 files changed
+9
-8
No files matched your search
@@ -204,12 +204,7 @@ async def load_project(path: str = Body(..., embed=True)) -> schemas.Project:
|
||||
|
||||
controller = Controller.instance()
|
||||
dot_gns3_file = path
|
||||
if Config.instance().settings.Server.local is False:
|
||||
log.error(f"Cannot load '{dot_gns3_file}' because the server has not been started with the '--local' parameter")
|
||||
raise ControllerForbiddenError("Cannot load project when server is not local")
|
||||
project = await controller.load_project(
|
||||
dot_gns3_file,
|
||||
)
|
||||
project = await controller.load_project(dot_gns3_file)
|
||||
return project.asdict()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user