[PATCH 2/9] Fix handling of existing btrfs subvolumes.

Brian C. Lane bcl at redhat.com
Wed Jul 25 23:45:16 UTC 2012


On Wed, Jul 25, 2012 at 04:48:27PM -0500, David Lehman wrote:
> +        def get_opt_val(opt_name, options):
> +            for opt in options.split(","):
> +                if "=" not in opt:
> +                    continue
> +
> +                name, val = opt.split("=")
> +                if name == opt_name:
> +                    return val.strip()

This is probably useful enough that it belongs in iutil.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://fedorahosted.org/pipermail/anaconda-patches/attachments/20120725/bcd1d81a/attachment.sig>


More information about the anaconda-patches mailing list