- 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)
Ack, but we could really strengthen the algorithms and stop using isinstance.
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list