[augeas-devel] Help with cobbler lens
Bryan Kearney
bkearney at redhat.com
Fri Dec 18 20:53:03 UTC 2009
On 12/18/2009 02:24 PM, David Lutterkort wrote:
> On Fri, 2009-12-18 at 08:45 -0500, Bryan Kearney wrote:
>> On 12/17/2009 03:39 PM, David Lutterkort wrote:
>>> 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 ...
>>
>>
>> I see them. The error messages are a bit obscure and the lens seemed to
>> be working. Is there a FAQ on reading the error messages?
>
> Now there is:
> http://augeas.net/page/Ambiguities_or_what_do_those_error_messages_from_the_typechecker_mean
This was helpful. It may be good to explain the syntax of the error
message is
line.column - line.column and the second line is omitted if it does not
change. I was too stupid to realize that.
I am not sitting on this version of th lens:
http://pastie.org/749121
and get this error when I try and parse:
Test run encountered exception:
cobblersettings.aug:50.11-53.31:exception: overlapping lenses in tree
union.put
Example matched by both: { }
First lens: cobblersettings.aug:50.11-52.42
Second lens: cobblersettings.aug:48.29-.102
If I change line 49 slighlty (remove hte outer lens)
http://pastie.org/749238
I get this:
cobblersettings.aug:50.11-53.31:exception: overlapping lenses in tree
union.put
Example matched by both: { "value" = "''" }
First lens: cobblersettings.aug:50.11-52.42
Second lens: cobblersettings.aug:48.29-.100
I think I am close.. I am just missing something basic I think.
-- bk
More information about the augeas-devel
mailing list