Hello all.
Some days ago I have updated our puppetmaster to 0.24.7 (Debian,
something between etch and lenny)
I have a function:
#substract array from array
module Puppet::Parser::Functions
newfunction(:array_substract, :type => :rvalue) do |args|
args[0] - args[1]
end
end
called array_substract that should substract the array args[1] from
args[0]
This worked perfectly fine in the previous 0.24.5 version.
Now, I get an error:
undefined method `-' for "user1":String
where "user1" is the first component of args[0]
The question is now: Did something change in the way how functions
work in 0.24.7? The Changelog does not suggest this.
Thanks,
udo.
--
:: udo waechter - [email protected] :: N 52º16'30.5" E 8º3'10.1"
:: genuine input for your ears: http://auriculabovinari.de
:: your eyes: http://ezag.zoide.net
:: your brain: http://zoide.net
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---