[augeas-devel] [Augeas] #231: Set issue with recursive lens and indentation
Augeas
trac at fedorahosted.org
Thu Nov 17 23:51:19 UTC 2011
#231: Set issue with recursive lens and indentation
----------------------+-----------------------------------------------------
Reporter: raphink | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: devel
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by lutter):
It's an issue with the union lens ('|') which doesn't detect that { "foo"
} matches the first branch of the union. The easiest workaround is the
following
{{{
let fix_kv (lns:lens) =
[ key /[a-z]+/ . del /\./ "." . lns ]
| [ key /[a-z]+/ . del "=" "=" . store /[a-z]+/ ]
}}}
Now the union lens properly distinguishes between { "foo" } and { "bar" =
"baz" }
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/231#comment:3>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list