Im trying to make my own function. I keep getting this message.
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Function 'brent_k' does not return a value at /etc/puppet/modules/munin/manifests/init.pp:17 on node XYZ.com
Here is my simple code
xyz.com:/etc/puppet/modules/munin/lib/puppet/parser/functions# cat brent_k.rb
newfunction(:brent_k, :type => :rvalue) do |args|
val = 'ok'
And then in my manifest, I have
$a = brent_k()
I tried "return val" too.
Thanks if you can help
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.