[augeas-devel] Yet more novice questions, Re: path expression question

David Lutterkort lutter at watzmann.net
Mon Oct 7 22:38:18 UTC 2013


Great you found the issue - just to be a stickler for detail:

On Sun, Oct 6, 2013 at 1:50 PM, Patrick Spinler <spinler.patrick at mayo.edu>wrote:

> On 10/6/13 3:43 PM, Patrick Spinler wrote:
> >
> > $ sudo augtool --noload
> > augtool> print /augeas//errors
> > augtool> set /augeas/load/Iptables/lens Iptables.lns
> > augtool> set /augeas/load/Iptables/incl /etc/sysconfig/iptables
> > error: Too many matches for path expression
>

What's going wrong here is that there are two /augeas/load/Iptables/incl
nodes created by the autoload directive in iptables.aug; the first argument
to set needs to be a single node.

Running augtool with --noautoload will certainly fix that, as would a 'rm
/augeas/load/Iptables/*' before your set statements ... though that might
not really be waht you want.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20131007/2469a1b6/attachment.htm>


More information about the augeas-devel mailing list