mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-13 01:20:58 +00:00
Fix bug when no server config file is present.
This commit is contained in:
parent
7b3351bba6
commit
edb20482c7
@ -153,8 +153,6 @@ class Config:
|
|||||||
Return the settings.
|
Return the settings.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self._settings is None:
|
|
||||||
return ServerConfig()
|
|
||||||
return self._settings
|
return self._settings
|
||||||
|
|
||||||
def listen_for_config_changes(self, callback):
|
def listen_for_config_changes(self, callback):
|
||||||
@ -273,6 +271,7 @@ class Config:
|
|||||||
return
|
return
|
||||||
if not parsed_files:
|
if not parsed_files:
|
||||||
log.warning("No configuration file could be found or read")
|
log.warning("No configuration file could be found or read")
|
||||||
|
self._settings = ServerConfig()
|
||||||
return
|
return
|
||||||
|
|
||||||
for file in parsed_files:
|
for file in parsed_files:
|
||||||
|
Loading…
Reference in New Issue
Block a user