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

Re: [PATCH 2/2] Add support for 'autopart --nolvm'



> +    def _getParser(self):
> +        def lvm_cb (option, opt_str, value, parser):
> +            parser.values.lvm = False
> +
> +        op = F12_AutoPart._getParser(self)
> +        op.add_option("--nolvm", action="callback", callback=lvm_cb,
> +                      dest="lvm", default=True, nargs=0)
> +        return op

You should just be able to make this:

   op.add_option("--nolvm", action="store_false", default=True, dest="lvm")

Right?

- Chris


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