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:
grossmj committed 2021-12-10 15:52:57 +10:30
1 parent 16fcf6141e
commit ab4d964d69
3 files changed
+9 -8

No files matched your search

+1 -6
View File
@@ -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()