[anaconda][rhel7-branch][PATCH] Ignore zram block devices in the list-harddrives script output (#1253184)
Martin Kolman
mkolman at redhat.com
Mon Aug 31 11:55:52 UTC 2015
On Fri, 2015-08-28 at 10:04 -0400, Chris Lumens wrote:
> > def main(argv):
> > lst = set()
> >
> > - for dev in filter(lambda d: d.type != parted.DEVICE_DM and not
> > d.path.startswith("/dev/sr"), parted.getAllDevices()):
> > + for dev in filter(lambda d: check_device(d),
> > parted.getAllDevices()):
>
> You can further shorten the above line to be:
>
> for dev in filter(check_device, parted.getAllDevices()):
Nice idea, changing locally! :)
>
> - Chris
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list