[PATCH 14/47] Removed partedUtils.get_lvm_partitions()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now provided by parted.Disk.getLVMPartitions()
---
 partedUtils.py |    7 -------
 partitions.py  |    2 +-
 2 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/partedUtils.py b/partedUtils.py
index 32a9f3e..6e04900 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -159,13 +159,6 @@ def filter_partitions(disk, func):
 
     return rc
 
-def get_lvm_partitions(disk):
-    """Return a list of physical volume-type PedPartition objects on disk."""
-    func = lambda part: (part.is_active()
-                         and part.get_flag(parted.PARTITION_LVM) == 1)
-    return filter_partitions(disk, func)
-
-
 def getDefaultDiskType():
     """Get the default partition table type for this architecture."""
     if iutil.isEfi():
diff --git a/partitions.py b/partitions.py
index 1f8c233..2c371c8 100644
--- a/partitions.py
+++ b/partitions.py
@@ -898,7 +898,7 @@ class Partitions:
         pvlist = lvm.pvlist()
         for drive in drives:
             disk = diskset.disks[drive]
-            for part in partedUtils.get_lvm_partitions(disk):
+            for part in disk.getLVMPartitions():
                 partname = part.getDeviceNodeName()
                 partrequest = self.getRequestByDeviceName(partname)
                 if partrequest.encryption is None and \
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux