Fix Bug: 'Suggest partition layout' crashes

File: lib/user_interaction.py

When function manage_new_and_existing_partitions() is used, and
'Suggest partition layout' is selected, the installer crashes.

REASON
Bug was introduced in commit 9e67ce3, when partition layout was
changed to use device.path as keys (instead of device).

It seems all necessary changes were made for this, except this one.
This commit is contained in:
Hugo Ankarloo 2021-09-21 00:38:20 +02:00
parent e71a41377d
commit 5bcbb50936
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ def manage_new_and_existing_partitions(block_device :BlockDevice) -> dict:
if input(f"{block_device} contains queued partitions, this will remove those, are you sure? y/N: ").strip().lower() in ('', 'n'):
continue
block_device_struct.update( suggest_single_disk_layout(block_device)[block_device] )
block_device_struct.update( suggest_single_disk_layout(block_device)[block_device.path] )
elif task is None:
return block_device_struct
else: