From 2143e2888d8d5fd5decfedcb03e64ae89f708a8c Mon Sep 17 00:00:00 2001 From: David Lehman Date: Sep 11 2012 19:44:11 +0000 Subject: Fix traceback when switching device type to BTRFS. BTRFS default RAID level is single, so we need that to be a key in the raid_level_features dict. --- diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index 9188034..30b2e67 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -86,7 +86,8 @@ raid_level_features = {"raid0": ["Performance"], "raid10": ["Performance", "Redundancy"], "raid4": ["Performance", "Error"], "raid5": ["Performance", "DistError"], - "raid6": ["Performance", "RedundantError"]} + "raid6": ["Performance", "RedundantError"], + "single": []} # disabled features by raid_level raid_disabled_features = {"raid1": ["Error", "DistError", "RedundantError"]}