Issue #8717 has been updated by Jeff McCune. Category set to stdlib Status changed from Accepted to Closed
# Closed # Published along with 1.0.0 release. ---------------------------------------- Bug #8717: stdlib - merge() function should be compatible with Ruby 1.8.5 https://projects.puppetlabs.com/issues/8717 Author: Jeff McCune Status: Closed Priority: Normal Assignee: Jeff McCune Category: stdlib Target version: Keywords: stdlib merge ruby inject Branch: g...@github.com:jeffmccune/puppetlabs-stdlib.git ticket/master/8717_merge_function_ruby_185 # Overview # It appears the use of Array.inject() in the stdlib merge() function is not compatible with Ruby 1.8.5 <pre> [root@centos56-64 ~]# puppet apply -v --trace --noop --modulepath /vagrant/modules /vagrant/modules/accounts/tests/init.pp /vagrant/modules/stdlib/lib/puppet/parser/functions/merge.rb:24:in `inject' /vagrant/modules/stdlib/lib/puppet/parser/functions/merge.rb:24:in `function_merge' /usr/local/src/puppet/lib/puppet/parser/ast/function.rb:33:in `send' /usr/local/src/puppet/lib/puppet/parser/ast/function.rb:33:in `evaluate' /usr/local/src/puppet/lib/puppet/parser/ast.rb:76:in `safeevaluate' /usr/local/src/puppet/lib/puppet/parser/ast/vardef.rb:16:in `evaluate' /usr/local/src/puppet/lib/puppet/parser/ast.rb:76:in `safeevaluate' /usr/local/src/puppet/lib/puppet/parser/ast/astarray.rb:35:in `evaluate' /usr/local/src/puppet/lib/puppet/parser/ast/astarray.rb:34:in `collect' /usr/local/src/puppet/lib/puppet/parser/ast/astarray.rb:34:in `evaluate' /usr/local/src/puppet/lib/puppet/parser/ast.rb:76:in `safeevaluate' /usr/local/src/puppet/lib/puppet/resource/type.rb:76:in `evaluate_code' /usr/local/src/puppet/lib/puppet/parser/resource.rb:71:in `evaluate' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:266:in `evaluate_definitions' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:266:in `each' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:266:in `evaluate_definitions' /usr/local/src/puppet/lib/puppet/util/errors.rb:35:in `exceptwrap' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:265:in `evaluate_definitions' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:281:in `evaluate_generators' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:276:in `loop' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:276:in `evaluate_generators' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:107:in `compile' /usr/local/src/puppet/lib/puppet/parser/compiler.rb:18:in `compile' /usr/local/src/puppet/lib/puppet/indirector/catalog/compiler.rb:77:in `compile' /usr/local/src/puppet/lib/puppet/util.rb:198:in `benchmark' /usr/local/src/puppet/lib/puppet/indirector/catalog/compiler.rb:75:in `compile' /usr/local/src/puppet/lib/puppet/indirector/catalog/compiler.rb:34:in `find' /usr/local/src/puppet/lib/puppet/indirector/indirection.rb:188:in `find' /usr/local/src/puppet/lib/puppet/indirector.rb:50:in `find' /usr/local/src/puppet/lib/puppet/application/apply.rb:115:in `main' /usr/local/src/puppet/lib/puppet/application/apply.rb:35:in `run_command' /usr/local/src/puppet/lib/puppet/application.rb:305:in `run' /usr/local/src/puppet/lib/puppet/application.rb:420:in `hook' /usr/local/src/puppet/lib/puppet/application.rb:305:in `run' /usr/local/src/puppet/lib/puppet/application.rb:411:in `exit_on_fail' /usr/local/src/puppet/lib/puppet/application.rb:305:in `run' /usr/local/src/puppet/lib/puppet/util/command_line.rb:62:in `execute' /usr/local/src/puppet/bin/puppet:4 /usr/local/src/puppet/lib/puppet/parser/compiler.rb:21:in `compile' /usr/local/src/puppet/lib/puppet/indirector/catalog/compiler.rb:77:in `compile' /usr/local/src/puppet/lib/puppet/util.rb:198:in `benchmark' /usr/local/src/puppet/lib/puppet/indirector/catalog/compiler.rb:75:in `compile' /usr/local/src/puppet/lib/puppet/indirector/catalog/compiler.rb:34:in `find' /usr/local/src/puppet/lib/puppet/indirector/indirection.rb:188:in `find' /usr/local/src/puppet/lib/puppet/indirector.rb:50:in `find' /usr/local/src/puppet/lib/puppet/application/apply.rb:115:in `main' /usr/local/src/puppet/lib/puppet/application/apply.rb:35:in `run_command' /usr/local/src/puppet/lib/puppet/application.rb:305:in `run' /usr/local/src/puppet/lib/puppet/application.rb:420:in `hook' /usr/local/src/puppet/lib/puppet/application.rb:305:in `run' /usr/local/src/puppet/lib/puppet/application.rb:411:in `exit_on_fail' /usr/local/src/puppet/lib/puppet/application.rb:305:in `run' /usr/local/src/puppet/lib/puppet/util/command_line.rb:62:in `execute' /usr/local/src/puppet/bin/puppet:4 wrong number of arguments (2 for 1) at /vagrant/modules/accounts/manifests/user.pp:49 on node centos56-64.localdomain [root@centos56-64 ~]# ruby --version ruby 1.8.5 (2006-08-25) [x86_64-linux] </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.