summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-23 14:13:40 -0400
committerChris Lumens <clumens@redhat.com>2009-04-23 15:21:52 -0400
commit1aca4d0860932da64892216f08e5a2775cc834c1 (patch)
treeaad747a9e3c77599cef96f4ea693c86323f44bdb /iw
parentcfac7bcb2079b463e33c2401002575d0de12d9b2 (diff)
downloadanaconda-1aca4d0860932da64892216f08e5a2775cc834c1.tar.gz
anaconda-1aca4d0860932da64892216f08e5a2775cc834c1.tar.xz
anaconda-1aca4d0860932da64892216f08e5a2775cc834c1.zip
When making a RAID device, require that some members be selected (#491932).
Diffstat (limited to 'iw')
-rw-r--r--iw/raid_dialog_gui.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 2fafccd87..652a05001 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -160,6 +160,11 @@ class RaidEditor:
raidmembers.append(dev)
iter = model.iter_next(iter)
+
+ # The user has to select some devices to be part of the array.
+ if not raidmembers:
+ continue
+
mountpoint = self.mountCombo.get_children()[0].get_text()
if not self.origrequest.exists: