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

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

 



> 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:

Those are attributes of the parted.Disk, which can be accessed via
disklabel.partedDisk in that loop. The name _disk refers to a
DiskDevice, which doesn't have these attributes.

Dave

>                      # don't fail to create a primary if there are only three
>                      # primary partitions on the disk (#505269)
>                      new_part_type = parted.PARTITION_NORMAL

_______________________________________________
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