[augeas-devel] Would any of the existing lenses support yaml?

Bryan Kearney bkearney at redhat.com
Fri Aug 8 18:30:28 UTC 2008



David Lutterkort wrote:
> On Fri, 2008-08-08 at 14:08 -0400, Bryan Kearney wrote:
>> For thincrust, I would like to access a custom yaml file. Would any of 
>> the existing lenses support this?
> 
> No, none do. YAML is actually pretty nasty to parse, since it depends so
> heavily on indentation.
> 
> You're probably better off writing a little script in python or Ruby to
> parse the YAML file, make the changes you need and write it back out. Of
> coure, if you feel like writing a lens, patches are always welcome ;)

Thanks... I will stick with ini for now. That way when .3 comes out I 
can use it.

-- bk




More information about the augeas-devel mailing list