[augeas-devel] case-like solution?

David Lutterkort lutter at redhat.com
Tue Jan 5 21:35:14 UTC 2010


On Tue, 2010-01-05 at 12:00 +0100, Tim Stoop wrote:
> Hi David,
> 
> On Mon, Jan 4, 2010 at 11:57 PM, David Lutterkort <lutter at redhat.com> wrote:
> > Giant penny drops ... you want to put a constant value into a tree
> > node ? I.e., a counterpart to label ? That's easy enough to add. If you
> > still need it, I can make sure it goes into the next release.
> 
> Indeed, if the line ends in "[OR]", I'd like to give chain_as the
> value "or". If the line ends in "not [OR]", I'd like the value to be
> "and". Unless you know of a better way to model this, of course.

Without a lens primitive to set a fixed node value, you can work around
this by using different node names for '[OR]' and 'not [OR]', though
it's not quite as convenient.

David






More information about the augeas-devel mailing list