mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Create the controller config at first controller start
This commit is contained in:
parent
4c3bfde97e
commit
5a410155f7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user