mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Create the controller config at first controller start
This commit is contained in:
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user