mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Update snapshots when duplicating a project
This commit is contained in:
4 files changed
+115
-113
No files matched your search
@@ -217,7 +217,7 @@ class Controller:
|
||||
try:
|
||||
os.makedirs(os.path.dirname(self._config_file), exist_ok=True)
|
||||
with open(self._config_file, 'w+') as f:
|
||||
json.dump(controller_settings, f, indent=4)
|
||||
json.dump(controller_settings, f, indent=4, sort_keys=True)
|
||||
except OSError as e:
|
||||
log.error("Cannot write controller configuration file '{}': {}".format(self._config_file, e))
|
||||
|
||||
|
||||
Reference in new issue
Block a user