[augeas-devel] Help with cobbler lens

David Lutterkort lutter at redhat.com
Thu Dec 17 20:39:16 UTC 2009


On Thu, 2009-12-17 at 11:24 -0500, Bryan Kearney wrote:
> I took a first cut at a cobblersettings lens. You can see it at [1]. It 
> is meant to parse cobbler settings files [2] which is a basic YAML 1.0 
> syntax. It parses fine, but I am having issues saving a nested 
> structure. 

When I run 'augparse cobblersettings.aug', I get a whole bunch of type
errors - do you get them, too ? Those need to be fixed first ...

> This is the error I see:
> 
> augtool> save
> Saving failed
> augtool> get /augeas/files/etc/cobbler/settings/error/message
> /augeas/files/etc/cobbler/settings/error/message = Failed to match
>      { /value/ = /[^\001-\004\t\n 
> #:@]+|\"[^\001-\004\n\"]*\"|'[^\001-\004\n']*'/ }({ /value/ = 
> /[^\001-\004\t\n #:@]+|\"[^\001-\004\n\"]*\"|'[^\001-\004\n']*'/ })*
>    with tree
>      { "ksdevice" = "bootif" } { "lang" = "' '" } { "text" = "~" }

What's the changes you made before the save ? Can you send those and/or
a put test that demonstrates the problem ?

David





More information about the augeas-devel mailing list