From d79faab50c5dcc6774729de8ecdf6261c3d61c09 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Tue, 11 Sep 2012 16:50:29 -0500 Subject: Handle btrfs volumes with a dataLevel of None. --- pyanaconda/ui/gui/spokes/custom.py | 4 ++-- 1 file 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) -- cgit