[rhel7-branch][PATCH] Pass a Size instance to blivet instead of number of bytes

Anne Mulhern amulhern at redhat.com
Mon Jan 12 12:39:48 UTC 2015


Ack.

- mulhern

----- Original Message -----
> From: "Vratislav Podzimek" <vpodzime at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Monday, January 12, 2015 2:52:56 AM
> Subject: [rhel7-branch][PATCH] Pass a Size instance to blivet instead of	number of bytes
> 
> Size instances are now used everywhere in blivet.
> 
> Related: rhbz#1171116
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  pyanaconda/kickstart.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
> index 1e5b993..795e131 100644
> --- a/pyanaconda/kickstart.py
> +++ b/pyanaconda/kickstart.py
> @@ -231,7 +231,7 @@ def refreshAutoSwapSize(storage):
>  
>      for request in storage.autoPartitionRequests:
>          if request.fstype == "swap":
> -            disk_space = int(getAvailableDiskSpace(storage))
> +            disk_space = getAvailableDiskSpace(storage)
>              request.size = swap_lib.swapSuggestion(disk_space=disk_space)
>              break
>  
> --
> 2.1.0
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 


More information about the anaconda-patches mailing list