From e74eaa8ea8e731ca1260bcc547561199a51bb519 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 1 Aug 2017 16:37:02 +0200 Subject: [PATCH] Add a warning when you try to load and the server is not started with --local Ref #1151 --- gns3server/handlers/api/controller/project_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gns3server/handlers/api/controller/project_handler.py b/gns3server/handlers/api/controller/project_handler.py index 5cebe9fc..82e29a57 100644 --- a/gns3server/handlers/api/controller/project_handler.py +++ b/gns3server/handlers/api/controller/project_handler.py @@ -167,6 +167,7 @@ class ProjectHandler: controller = Controller.instance() config = Config.instance() if config.get_section_config("Server").getboolean("local", False) is False: + log.error("Can't load the project the server is not started with --local") response.set_status(403) return project = yield from controller.load_project(request.json.get("path"),)