[anaconda:master 1/3] Substitute mdraid.RAID_levels.raidLevel() for mdraid.getRaidLevels()
mulhern
amulhern at redhat.com
Tue May 6 17:05:00 UTC 2014
Since mdraid.getRaidLevels() has gone away.
Signed-off-by: mulhern <amulhern at redhat.com>
---
pyanaconda/ui/gui/spokes/custom.py | 2 +-
pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 83a2d1c..d641d92 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -627,7 +627,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
error = _("Devices of type %s require a valid RAID level selection.") % _(DEVICE_TEXT_MD)
if not error and raid_level not in (None, "single"):
- md_level = mdraid.getRaidLevel(raid_level)
+ md_level = mdraid.RAID_levels.raidLevel(raid_level)
min_disks = md_level.min_members
if len(self._device_disks) < min_disks:
error = _(RAID_NOT_ENOUGH_DISKS) % {"level": md_level,
diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index b2117f5..aa8635a 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -428,7 +428,7 @@ class ContainerDialog(GUIObject):
raid_level = selectedRaidLevel(self._raidLevelCombo)
if raid_level:
- md_level = mdraid.getRaidLevel(raid_level)
+ md_level = mdraid.RAID_levels.raidLevel(raid_level)
min_disks = md_level.min_members
if len(paths) < min_disks:
self._error = (_(RAID_NOT_ENOUGH_DISKS) % {"level" : md_level,
--
1.8.3.1
More information about the anaconda-patches
mailing list