Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-28 10:32:48 +0000
committerGitHub <noreply@github.com>2021-11-28 10:32:48 +0000
commit22ee2d90a1d2fb6af2ab5e80235e31f9da7a0550 (patch)
treef723d64b3dfb994a02e007819c8e5a658c42ca76
parent7fd26817a1e303088da4e64481eb98fa85b3815b (diff)
parent5aaa8d9814bdd67de444509c188d112a74902411 (diff)
Merged PR #775 - Adds version to user_conf.json
Adds version to user_configuration.json
-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)