udo waechter
2009-Jan-26 19:19 UTC
[Puppet Users] 0.24.5 -> 0.24.7 function output strangeness
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 - root@zoide.net :: 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 puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
udo waechter
2009-Jan-26 19:48 UTC
[Puppet Users] Re: 0.24.5 -> 0.24.7 function output strangeness
Hello again. I just saw http://projects.reductivelabs.com/issues/1824 Obviously this is already recognized as an issue. Bye, udo. On 26.01.2009, at 20:19, udo waechter wrote:> > 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 - root@zoide.net :: 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 > > > > > > > >-- :: udo waechter - root@zoide.net :: 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 puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---