summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-09-11 16:50:29 -0500
committerDavid Lehman <dlehman@redhat.com>2012-09-13 11:13:22 -0500
commitd79faab50c5dcc6774729de8ecdf6261c3d61c09 (patch)
treefd26fb7721426dd3d2c9b4973ca4213b06d43883
parent47ccfeec5b57e9d226135e920329c117824d287c (diff)
downloadanaconda-d79faab50c5dcc6774729de8ecdf6261c3d61c09.tar.gz
anaconda-d79faab50c5dcc6774729de8ecdf6261c3d61c09.tar.xz
anaconda-d79faab50c5dcc6774729de8ecdf6261c3d61c09.zip
Handle btrfs volumes with a dataLevel of None.
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 414945513..83078fd8a 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1067,9 +1067,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
elif device.type.startswith("btrfs"):
typeCombo.set_active(DEVICE_TYPE_BTRFS)
if hasattr(device, "volume"):
- raid_level = device.volume.dataLevel
+ raid_level = device.volume.dataLevel or "single"
else:
- raid_level = device.dataLevel
+ raid_level = device.dataLevel or "single"
# you can't change the type of an existing device
typeCombo.set_sensitive(not device.exists)