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

Anne Mulhern amulhern at redhat.com
Wed Jan 8 14:46:13 UTC 2014





----- Original Message -----
> From: "David Lehman" <dlehman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Tuesday, January 7, 2014 6:50:59 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 fd01ec9..154693e 100644
> --- a/blivet/size.py
> +++ b/blivet/size.py
> @@ -232,7 +232,7 @@ class Size(Decimal):
>          else:
>              bytes = _bytes
>          if spec in bytes:
> -            return self
> +            return Decimal(self)
>  
>          if xlate:
>              prefixes = [_(p) for p in _prefixes]
> --

Still Ack.

- mulhern

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