From 22f9effedefa9ffac1d27eba6dc4d8082b75a395 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 29 Jun 2016 15:15:22 +0200 Subject: [PATCH] Save to disk when config change --- gns3server/handlers/api/controller/server_handler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)