So I just took a look at how "include" does it: 1 # Include the specified classes 2 Puppet::Parser::Functions::newfunction(:include, :doc => "Evaluate one or more classes.") do |vals| 3 vals = [vals] unless vals.is_a?(Array)
Maybe try that? Or maybe modify what you did and try [args].flatten.each do etc. etc. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-dev/-/ARmOiWuJuzAJ. 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-dev?hl=en.
