On Oct 21, 9:47 am, Ryan Steele <[EMAIL PROTECTED]> wrote:
>
> ...snip..
>
> I then need a way to look up the custom facts, which take on the form
> "jsmith_uid", "jsmith_pgid", and "jsmith_gid".  This yields the
> following function:

Actually, this:

> module Puppet::Parser::Functions
>    newfunction(:lookupvar, :type => :rvalue) do |args|
>       return args[0] if args[0]
>    end
> end

Should really read as follows:

module Puppet::Parser::Functions
   newfunction(:lookupvar, :type => :rvalue) do |args|
      if args[0]
         return args[0]
      else
         return undef
      end
   end
end


The rest should all be correct, though.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to