[PATCH] When making a RAID device, require that some members be selected (#491932).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/raid_dialog_gui.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 2fafccd..652a050 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:
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux