--- storage/__init__.py | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/storage/__init__.py b/storage/__init__.py index 08ba90a..b0789d6 100644 --- a/storage/__init__.py +++ b/storage/__init__.py @@ -262,11 +262,7 @@ class Storage(object): does not necessarily reflect the actual on-disk state of the system's disks. """ - partitions = [] - devices = self.devicetree.devices - for d in devices: - if isinstance(devices[d], PartitionDevice): - partitions.append(devices[d]) + partitions = self.devicetree.getDevicesByInstance(PartitionDevice) partitions.sort(key=lambda d: d.name) return partitions -- 1.6.1.3 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list