----- Original Message -----
From: "David Lehman" <dlehman(a)redhat.com>
To: anaconda-patches(a)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(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches