From 5aaa8d9814bdd67de444509c188d112a74902411 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 28 Nov 2021 11:31:23 +0100 Subject: Adds version to user_conf.json The key is never read anywhere, but would be useful in debugging purposes. --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index bd701bc9..aabab3b5 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -205,7 +205,7 @@ def perform_filesystem_operations(): print() print('This is your chosen configuration:') archinstall.log("-- Guided template chosen (with below config) --", level=logging.DEBUG) - user_configuration = json.dumps(archinstall.arguments, indent=4, sort_keys=True, cls=archinstall.JSON) + user_configuration = json.dumps({**archinstall.arguments, 'version' : archinstall.__version__} , indent=4, sort_keys=True, cls=archinstall.JSON) archinstall.log(user_configuration, level=logging.INFO) with open("/var/log/archinstall/user_configuration.json", "w") as config_file: config_file.write(user_configuration) -- cgit v1.2.3-54-g00ecf