[PATCH 4/6] Fix return value of Size.convertTo with a spec of bytes.

Anne Mulhern amulhern at redhat.com
Sat Dec 21 21:47:43 UTC 2013





----- Original Message -----
> From: "David Lehman" <dlehman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Friday, December 20, 2013 12:59:57 PM
> Subject: [PATCH 4/6] Fix return value of Size.convertTo with a spec of bytes.
> 
> ---
>  blivet/size.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/blivet/size.py b/blivet/size.py
> index 46a7747..a837a98 100644
> --- a/blivet/size.py
> +++ b/blivet/size.py
> @@ -229,7 +229,7 @@ class Size(Decimal):
>          else:
>              bytes = _bytes
>          if spec in bytes:
> -            return self
> +            return Decimal(self)
>  
>          if xlate:
>              prefixes = [_(p) for p in _prefixes]
> --
> 1.8.1.4

Ack.

- mulhern

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