diff --git a/gns3server/handlers/api/controller/server_handler.py b/gns3server/handlers/api/controller/server_handler.py index 7b8909d2..4168d872 100644 --- a/gns3server/handlers/api/controller/server_handler.py +++ b/gns3server/handlers/api/controller/server_handler.py @@ -108,6 +108,8 @@ class ServerHandler: 201: "Writed" }) def write_settings(request, response): - Controller.instance().settings = request.json - response.json(Controller.instance().settings) + controller = Controller.instance() + controller.settings = request.json + controller.save() + response.json(controller.settings) response.set_status(201)