On Thu, May 31, 2012 at 06:05:22PM -0700, Jesse Keating wrote: > Before we'd return all the features, even the ones set to 0, now we only > return the ones that are set to 1. Having all the features returned can > lead to a zipl.conf file that has too long of lines. > --- > pyanaconda/storage/devices.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py > index bee2d24..0d99324 100644 > --- a/pyanaconda/storage/devices.py > +++ b/pyanaconda/storage/devices.py > @@ -3827,7 +3827,7 @@ class DASDDevice(DiskDevice): > return "DASD device %s" % self.busid > > def getOpts(self): > - return map(lambda (k, v): "%s=%s" % (k, v,), self.opts.items()) > + return ["%s=%s" % (k, v) for k, v in self.opts.items() if v == '1'] > > def dracutSetupArgs(self): > conf = "/etc/dasd.conf" > -- > 1.7.10.2 Ack -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Attachment:
pgp8JhERx8nZB.pgp
Description: PGP signature
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list