#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
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel