summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-09-24 15:46:33 -0500
committerDavid Lehman <dlehman@redhat.com>2012-09-26 12:37:27 -0500
commitc4477f99fea83c115f605efe0594f1b3093922a7 (patch)
tree752fab7e48b251339dd3ee12f98cb6dd2074413c /pyanaconda/storage
parent4fe804c4fb5d98510c8fb469b81746a7057117be (diff)
downloadanaconda-c4477f99fea83c115f605efe0594f1b3093922a7.tar.gz
anaconda-c4477f99fea83c115f605efe0594f1b3093922a7.tar.xz
anaconda-c4477f99fea83c115f605efe0594f1b3093922a7.zip
Treat disks with unrecognized or no formatting as empty. (#858862)
Diffstat (limited to 'pyanaconda/storage')
-rw-r--r--pyanaconda/storage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index a25e5b519..932ad7e6a 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -934,6 +934,8 @@ class Storage(object):
fs_free += partition.format.free
elif hasattr(disk.format, "free"):
fs_free = disk.format.free
+ elif disk.format.type is None:
+ disk_free = disk.size
free[disk.name] = (Size(spec="%f mb" % disk_free),
Size(spec="%f mb" % fs_free))