diff options
author | David Lehman <dlehman@redhat.com> | 2012-09-24 15:46:33 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-09-26 12:37:27 -0500 |
commit | c4477f99fea83c115f605efe0594f1b3093922a7 (patch) | |
tree | 752fab7e48b251339dd3ee12f98cb6dd2074413c /pyanaconda/storage | |
parent | 4fe804c4fb5d98510c8fb469b81746a7057117be (diff) | |
download | anaconda-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__.py | 2 |
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)) |