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

David Lutterkort dlutter at redhat.com
Fri Aug 8 18:17:47 UTC 2008


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 ;)

David





More information about the augeas-devel mailing list