mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-17 01:04:51 +02:00
Fix issue when there is no gns3_controller.conf. Fixes https://github.com/GNS3/gns3-gui/issues/2644
This commit is contained in:
parent
58b2ee152d
commit
0fd54536d2
@ -328,6 +328,7 @@ class Controller:
|
|||||||
try:
|
try:
|
||||||
if not os.path.exists(self._config_file):
|
if not os.path.exists(self._config_file):
|
||||||
await self._import_gns3_gui_conf()
|
await self._import_gns3_gui_conf()
|
||||||
|
self._config_loaded = True
|
||||||
self.save()
|
self.save()
|
||||||
with open(self._config_file) as f:
|
with open(self._config_file) as f:
|
||||||
controller_settings = json.load(f)
|
controller_settings = json.load(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user