[PATCH 1/3] allocatePartitions: PartitionCount is a member of PartedDisk not DiskDevice

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

 



Courtesy of pylint (sort of).
---
 storage/partitioning.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 1c94cfb..a1c1709 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -730,7 +730,8 @@ def allocatePartitions(disks, partitions):
                 continue
 
             if _part.req_primary and new_part_type != parted.PARTITION_NORMAL:
-                if disk.primaryPartitionCount < disk.maxPrimaryPartitionCount:
+                if (disklabel.partedDisk.primaryPartitionCount <
+                    disklabel.partedDisk.maxPrimaryPartitionCount):
                     # don't fail to create a primary if there are only three
                     # primary partitions on the disk (#505269)
                     new_part_type = parted.PARTITION_NORMAL
-- 
1.6.4

_______________________________________________
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