Re: [PATCH] Fix traceback when validating unallocated partition requests. (#733670)

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

 



On Fri, Aug 26, 2011 at 02:29:49PM -0500, David Lehman wrote:
> ---
>  pyanaconda/bootloader.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index 9a3e6ff..be49a75 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -474,7 +474,7 @@ class BootLoader(object):
>  
>      def _is_valid_location(self, device, max_mb=None, desc=""):
>          ret = True
> -        if max_mb and device.type == "partition":
> +        if max_mb and device.type == "partition" and device.partedPartition:
>              end_sector = device.partedPartition.geometry.end
>              sector_size = device.partedPartition.disk.device.sectorSize
>              end_mb = (sector_size * end_sector) / (1024.0 * 1024.0)
> -- 
> 1.7.6

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpcHwt0tdePD.pgp
Description: PGP signature

_______________________________________________
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