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-09-15 19:23:35 +0200
committerAnton Hvornum <anton@hvornum.se>2021-09-15 19:23:35 +0200
commit70af00f33dd903e1bc70a996854861038a2d919c (patch)
tree751af890a90f3f9cb22ed71aecf12d994844d0ac
parente6549c1edbb63e255a8a6d971953bbbe1ab2d3c5 (diff)
Tweaked the logic for parsing the --harddrives parameter.
-rw-r--r--examples/guided.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index b3f1b14b..b0f6f699 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -113,8 +113,7 @@ def ask_user_questions():
# and convert them into archinstall.BlockDevice() objects.
if archinstall.arguments.get('harddrives', None):
if type(archinstall.arguments['harddrives']) is str:
- archinstall.arguments['harddrives'] = archinstall.arguments['harddrives'].split(',')
- archinstall.arguments['harddrives'] = [archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.arguments['harddrives']]
+ archinstall.arguments['harddrives'] = [archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.arguments['harddrives'].split(',')]
else:
archinstall.arguments['harddrives'] = archinstall.generic_multi_select(archinstall.all_disks(),
text="Select one or more harddrives to use and configure (leave blank to skip this step): ",