mount: use False as default for "claimed"

The regular tests would fail, because the sample global
configuration does not set the "claimed" value of a partition.
This commit is contained in:
Adriaan de Groot 2023-08-28 22:54:22 +02:00
parent 72bad83022
commit 8e19d6080d

View File

@ -330,7 +330,7 @@ def run():
_("No partitions are defined for <pre>{!s}</pre> to use.").format("mount"))
# Find existing swap partitions that are part of the installation and enable them now
swap_devices = [p['device'] for p in partitions if (p['fs'] == 'linuxswap' and p['claimed'])]
swap_devices = [p["device"] for p in partitions if (p["fs"] == "linuxswap" and p.get("claimed", False))]
enable_swap_partition(swap_devices)