Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-08 15:10:58 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-08 15:10:58 +0100
commitc5694393c6a9d53cbc7a2886e733b354d5055772 (patch)
tree5e94d5e6386458b10020a6317355771e76e43a2c /examples/guided.py
parentffbb952eb35b25c7538dca3426854292b67e2cc3 (diff)
Fixed the JSON_Encoder. The issue was that dictionaries are mutable, and dumping dictionaries and replacing keys also replaces the original value.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 264ff44e..fbe6ea47 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -228,15 +228,12 @@ except archinstall.RequirementError as e:
if not archinstall.arguments.get('nic', None):
archinstall.arguments['nic'] = archinstall.ask_to_configure_network()
-print(type(archinstall.arguments['harddrive']), archinstall.arguments['harddrive'])
-
print()
print('This is your chosen configuration:')
archinstall.log("-- Guided template chosen (with below config) --", level=archinstall.LOG_LEVELS.Debug)
archinstall.log(json.dumps(archinstall.arguments, indent=4, sort_keys=True, cls=archinstall.JSON), level=archinstall.LOG_LEVELS.Info)
print()
-print(type(archinstall.arguments['harddrive']), archinstall.arguments['harddrive'])
input('Press Enter to continue.')
"""