diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-02-15 12:03:01 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-02-16 13:10:26 +0100 |
commit | 27b318046f479c3ec227736548d8b3403b6accf4 (patch) | |
tree | c6d2d53a4323dd2526f521bcfc2172061e8d4a57 | |
parent | b3337f7d91c5d193bcd2d354608e068ff5f6fc30 (diff) | |
download | anaconda-27b318046f479c3ec227736548d8b3403b6accf4.tar.gz anaconda-27b318046f479c3ec227736548d8b3403b6accf4.tar.xz anaconda-27b318046f479c3ec227736548d8b3403b6accf4.zip |
Fix traceback in filter_gui.py when dealing with RAID10 BIOSRAID (#565444)
rs.get_members() also returns subsets with layered raids, we only
want the devices, so filter the result of rs.get_members() .
-rw-r--r-- | iw/filter_gui.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/iw/filter_gui.py b/iw/filter_gui.py index 1c1773001..00ec5c908 100644 --- a/iw/filter_gui.py +++ b/iw/filter_gui.py @@ -656,7 +656,11 @@ class FilterWindow(InstallWindow): size = int(partedDevice.getSize()) fstype = "" - members = map(lambda m: m.get_devpath(), list(rs.get_members())) + # get_members also returns subsets with layered raids, we only + # want the devices + members = filter(lambda m: isinstance(m, block.device.RaidDev), + list(rs.get_members())) + members = map(lambda m: m.get_devpath(), members) for d in raids: if udev_device_get_name(d) in members: fstype = udev_device_get_format(d) |