From edb20482c732f0f3db1198cfc951c08d3bb8b1ca Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 28 Apr 2021 14:44:34 +0930 Subject: [PATCH] Fix bug when no server config file is present. --- gns3server/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gns3server/config.py b/gns3server/config.py index 022a3ce1..3388ed97 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -153,8 +153,6 @@ class Config: Return the settings. """ - if self._settings is None: - return ServerConfig() return self._settings def listen_for_config_changes(self, callback): @@ -273,6 +271,7 @@ class Config: return if not parsed_files: log.warning("No configuration file could be found or read") + self._settings = ServerConfig() return for file in parsed_files: