index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2021-03-08 14:51:18 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2021-03-08 14:51:18 +0100 |
commit | 476006abe8060235299fd3bddbfe69e597f7f988 (patch) | |
tree | 9d9e0e87213f4d832a123253086d19cb27d1d541 /archinstall/lib/user_interaction.py | |
parent | 94daa8b98b8dba328e45b11ba51b25963c5dcf76 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 3 |
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): """ |