Title: Message Title
Henrik Lindberg commented on an issue
Puppet / Bug PUP-592
:rvalue functions require argument handling
What I mean by this is that the function has to handle the args parameter, even it doesn't do anything with it. This is not true for :statement functions.

This function blows up

{code}
# mastername.rb
require 'socket'

Puppet::Parser::Functions.newfunction(:mastername, :type => :rvalue ) do
  Socket.gethostname.chomp
end
{code}

Output:

...


--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to