Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-28 11:31:23 +0100
committerAnton Hvornum <anton@hvornum.se>2021-11-28 11:31:23 +0100
commit5aaa8d9814bdd67de444509c188d112a74902411 (patch)
treef723d64b3dfb994a02e007819c8e5a658c42ca76 /examples
parent7fd26817a1e303088da4e64481eb98fa85b3815b (diff)
Adds version to user_conf.json
The key is never read anywhere, but would be useful in debugging purposes.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
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)