Re: [PATCH 09/14] doPartitioning() receives a Storage instance.

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

 



On Sun, 2009-03-01 at 20:32 -1000, David Cantrell wrote:
> Modify this function to accept a Storage instance rather than an
> Anaconda instance.

Heh, I forgot the Storage instance has an anaconda attr. Looks good.

> ---
>  storage/partitioning.py |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/storage/partitioning.py b/storage/partitioning.py
> index 17a1081..dd31b81 100644
> --- a/storage/partitioning.py
> +++ b/storage/partitioning.py
> @@ -470,7 +470,7 @@ def getBestFreeSpaceRegion(disk, part_type, req_size,
>  
>      return best_free
>  
> -def doPartitioning(anaconda):
> +def doPartitioning(storage):
>      """ Allocate and grow partitions.
>  
>          When this function returns without error, all PartitionDevice
> @@ -481,10 +481,10 @@ def doPartitioning(anaconda):
>  
>          Arguments:
>  
> -            anaconda -- what else?
> +            storage - Main anaconda Storage instance
>  
>      """
> -    storage = anaconda.id.storage
> +    anaconda = storage.anaconda
>      disks = [d for d in storage.disks if d.name in storage.clearPartDisks]
>      partitions = storage.partitions
>  

_______________________________________________
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