[anaconda:master 2/3] Extend raid level lookup to all defined raid levels in on_save_clicked()
mulhern
amulhern at redhat.com
Tue May 6 17:05:01 UTC 2014
Previously lookup was restricted to mdraid levels.
Signed-off-by: mulhern <amulhern at redhat.com>
---
pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index aa8635a..a0c24f6 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -46,7 +46,7 @@ from blivet.devicefactory import DEVICE_TYPE_LVM
from blivet.devicefactory import DEVICE_TYPE_MD
from blivet.devicefactory import DEVICE_TYPE_BTRFS
from blivet.devicefactory import DEVICE_TYPE_LVM_THINP
-from blivet.devicelibs import mdraid
+from blivet.devicelibs import raid
import logging
log = logging.getLogger("anaconda")
@@ -428,7 +428,7 @@ class ContainerDialog(GUIObject):
raid_level = selectedRaidLevel(self._raidLevelCombo)
if raid_level:
- md_level = mdraid.RAID_levels.raidLevel(raid_level)
+ md_level = raid.ALL_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