summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyanaconda/ui/gui/spokes/lib/resize.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
index 2bfac70bb..378180745 100644
--- a/pyanaconda/ui/gui/spokes/lib/resize.py
+++ b/pyanaconda/ui/gui/spokes/lib/resize.py
@@ -120,9 +120,7 @@ class ResizeDialog(GUIObject):
diskReclaimableSpace = 0
# Then add all its partitions.
- for part in disk.format.partitions:
- dev = self.storage.devicetree.getDeviceByPath(part.path)
-
+ for dev in self.storage.devicetree.getChildren(disk):
if dev.isExtended and disk.format.logicalPartitions:
continue