summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage/size.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-07-17 13:10:45 -0500
committerDavid Lehman <dlehman@redhat.com>2012-07-18 09:59:49 -0500
commitb0ef5f0c2db2249d78f76f235513ce5393aa3dad (patch)
treeb1b16db8ed506bc24d5e146fd6edb4e4560f8979 /pyanaconda/storage/size.py
parentb355b5fbb532efc9c2eae70d03d3efd853fbb423 (diff)
downloadanaconda-b0ef5f0c2db2249d78f76f235513ce5393aa3dad.tar.gz
anaconda-b0ef5f0c2db2249d78f76f235513ce5393aa3dad.tar.xz
anaconda-b0ef5f0c2db2249d78f76f235513ce5393aa3dad.zip
Size.convertTo is supposed to return a Decimal instance.
Diffstat (limited to 'pyanaconda/storage/size.py')
-rw-r--r--pyanaconda/storage/size.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/storage/size.py b/pyanaconda/storage/size.py
index 1906ee0d6..eb3e2e4ff 100644
--- a/pyanaconda/storage/size.py
+++ b/pyanaconda/storage/size.py
@@ -185,7 +185,7 @@ class Size(Decimal):
check = _makeSpecs(prefix, abbr)
if spec in check:
- return self / Decimal(factor)
+ return Decimal(self / Decimal(factor))
return None