Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-08-10 12:57:32 +0200
committerGitHub <noreply@github.com>2022-08-10 12:57:32 +0200
commit259aaa488428aa5647d27ebb8e4678829e793dc2 (patch)
tree8a715445b7d7c4d2bf516d95bdfbfee519b43b7c /archinstall/lib/installer.py
parent242f8076bb7679a565433e30c61662c70f37b06f (diff)
Fixing a list access issue (#1416)
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index a0bcc2a6..798801aa 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -219,7 +219,7 @@ class Installer:
"""
if partition.get("mountpoint") is None:
if (sub_list := partition.get("btrfs",{}).get('subvolumes',{})):
- for mountpoint in [sub_list[subvolume] if isinstance(sub_list[subvolume],str) else sub_list[subvolume].get("mountpoint") for subvolume in sub_list if sub_list[subvolume]]:
+ for mountpoint in [sub_list[subvolume].get("mountpoint") if isinstance(subvolume, dict) else subvolume.mountpoint for subvolume in sub_list]:
if mountpoint == '/':
return True
return False