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

Re: [augeas-devel] Help with cobbler lens

I also have noticed in this lens that I have 2 types of nested sequences...

and the lens will convert instances it gets as setting_list into puts of setting_seq. Is there a way to make it remember the type from the get?

-- bk

On 12/17/2009 11:24 AM, 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. 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" = "~" }

I believe the issue is around the fact that for simple key values,

A: B

and nested key/values

A: B

Are only differentiated by the indentation. Any hints on what I should
look at?

-- bk

[1] http://bkearney.fedorapeople.org/cobblersettings.aug
[2] http://bkearney.fedorapeople.org/settings

augeas-devel mailing list
augeas-devel redhat com

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