[PATCH 06/11] allocatePartitions: our disk iterator is _disk not disk

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

 



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 1c94cfb..3eb004a 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -730,7 +730,7 @@ def allocatePartitions(disks, partitions):
                 continue
 
             if _part.req_primary and new_part_type != parted.PARTITION_NORMAL:
-                if disk.primaryPartitionCount < disk.maxPrimaryPartitionCount:
+                if _disk.primaryPartitionCount < _disk.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