Not that I'm aware of.  You can use last() instead of a number (and,
in fact, you have to in this case; see my long mail), but for
appending the current standard is to use a very large number (like
10000).  A bit weak, I know.  Feel free to complain to the Augeas
mailing list.

-Robin

On Thu, Jan 15, 2009 at 02:43:02PM -0800, windowsrefund wrote:
> 
> Now that I'm more comfortable working with the schemas of each
> supported file, I'm seeing a potential issue when it comes to
> appending. Is there a way to determine the length of each object
> so I can avoid doing things like /files/etc/exports/dir[100] ?
> 
> Best,
> Adam
> 
> 
> On Jan 15, 5:22 pm, Robin Lee Powell <rlpow...@digitalkingdom.org>
> wrote:
> > On Thu, Jan 15, 2009 at 02:10:57PM -0800, windowsrefund wrote:
> >
> > > Bryan,
> >
> > > Thanks so much for the pointer. I think I'm on the right track now but
> > > could use a hand understanding why I'm getting this error when
> > > attempting to write out to disk
> >
> > > augtool> print /files/etc/exports/
> > > /files/etc/exports
> > > /files/etc/exports/dir = "/foo"
> > > /files/etc/exports/dir/client = "foo.example.com"
> > > /files/etc/exports/dir/option = "rw"
> > > augtool> save
> > > /usr/share/augeas/lenses/exports.aug:17.16-19.58:Short split for
> > > concat
> > > Saving failed
> >
> > Because this:
> >
> > > /files/etc/exports/dir/option = "rw"
> >
> > is wrong.  You want:
> >
> > /files/etc/exports/dir/client/option = "rw"
> >
> > But also, see my other mail for how to not destroy your old lines
> > when you add new ones.
> >
> > -Robin
> >
> > --
> > They say:  "The first AIs will be built by the military as weapons."
> > And I'm thinking:  "Does it even occur to you to try for something
> > other than the default outcome?" 
> > --http://shorl.com/tydruhedufogrehttp://www.digitalkingdom.org/~rlpowell/***http://www.lojban.org/
> > 

-- 
They say:  "The first AIs will be built by the military as weapons."
And I'm thinking:  "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to