summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2013-02-20 12:11:31 -0800
committerBrian C. Lane <bcl@redhat.com>2013-02-20 12:11:34 -0800
commit4abb595d50f31418b2ca5ff96607e721de8ffd7c (patch)
treeb9c20ee0bbb59c05282164420602682119114c48
parent4ffb904e9cae7440173a96f542e135498b0327ae (diff)
downloadanaconda-4abb595d50f31418b2ca5ff96607e721de8ffd7c.tar.gz
anaconda-4abb595d50f31418b2ca5ff96607e721de8ffd7c.tar.xz
anaconda-4abb595d50f31418b2ca5ff96607e721de8ffd7c.zip
Fix RAID level test
The string needs to be converted to a raid level before passing it to blivet.
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index ddddcb3f2..ba93b7255 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1353,11 +1353,13 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
# what is the incremental disk space requirement for this feature?
# TODO: update this when the size spinner changes
- level = self._get_raid_level()
- min_disks = mdraid.get_raid_min_members(level)
- if min_disks <= len(factory.disks):
- factory.raid_level = level
- delta = factory.device_size - base_size
+ raid_level = self._get_raid_level()
+ if raid_level not in (None, "single"):
+ md_level = mdraid.raidLevel(raid_level)
+ min_disks = mdraid.get_raid_min_members(md_level)
+ if min_disks <= len(factory.disks):
+ factory.raid_level = md_level
+ delta = factory.device_size - base_size
def _get_current_device_type(self):
typeCombo = self.builder.get_object("deviceTypeCombo")