Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-08 14:51:18 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-08 14:51:18 +0100
commit476006abe8060235299fd3bddbfe69e597f7f988 (patch)
tree9d9e0e87213f4d832a123253086d19cb27d1d541 /archinstall
parent94daa8b98b8dba328e45b11ba51b25963c5dcf76 (diff)
Fixed expected return value from ask_for_disk_layout(). I think I have to throw an eye on generic_select() and it's expected return value in general.. But that's later.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 2c8c30f8..5861fff3 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -94,7 +94,8 @@ def ask_for_disk_layout():
'abort' : 'Abort the installation.'
}
- return generic_select(options.values(), "Found partitions on the selected drive, (select by number) what you want to do: ")
+ value = generic_select(options.values(), "Found partitions on the selected drive, (select by number) what you want to do: ")
+ return next((key for key, val in options.items() if val == value), None)
def generic_select(options, input_text="Select one of the above by index or absolute value: ", sort=True):
"""