[PATCH 2/7] Handle btrfs volumes with a dataLevel of None.
David Lehman
dlehman at redhat.com
Wed Sep 12 15:50:52 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 4149455..83078fd 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)
--
1.7.7.6
More information about the anaconda-patches
mailing list