On Wed, 2008-09-10 at 18:36 +0200, Dominique Dumont wrote:
> David Lutterkort <[EMAIL PROTECTED]> writes:
> is converted by a lens that contain a seq to:
>
> /files/etc/ssh/sshd_config/AcceptEnv[0]/1/ = LC_PAPER
> /files/etc/ssh/sshd_config/AcceptEnv[0]/2/ = LC_NAME
> /files/etc/ssh/sshd_config/AcceptEnv[1]/3/ = LC_ADDRESS
> /files/etc/ssh/sshd_config/AcceptEnv[1]/4/ = LC_TELEPHONE
>
> From a semantic point of view, only the second index (/1/, /2/, ...)
> is important.
>
> The first index that group the AcceptEnv entry ([0] [1]) is used only
> to restore AcceptEnv by group in sshd_config file. They don't hold
> semantic information.
>
> Would it be possible to mask these index from the API user ?
The intent is that you can ignore the index for AcceptEnv, so that you
can say
get /files/etc/ssh/sshd_config/AcceptEnv/3 => "LC_ADDRESS"
But that seems to be broken currently [1] .. similarly, you should be able to
say
set /files/etc/ssh/sshd_config/AcceptEnv/42 "FOO"
and have the node '42' be added as a child
of /files/etc/ssh/sshd_config/AcceptEnv[1], but that is also broken [2].
Does that address the needs of Config::Model ?
David
[1] https://fedorahosted.org/augeas/ticket/23
[2] https://fedorahosted.org/augeas/ticket/24
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel