From 5a410155f7912d5657417a8dae5bc9e0311bfb3f Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 23 Jun 2016 12:17:31 +0200 Subject: [PATCH] Create the controller config at first controller start --- gns3server/controller/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 9bc7f6b6..4c22742d 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -78,8 +78,9 @@ class Controller: """ Reload the controller configuration from disk """ + if not os.path.exists(self._config_file): - return + self.save() try: with open(self._config_file) as f: data = json.load(f)