Ahhhh.  Indeed there is something wrong with my function.  Sorry to bother
the folks here, I was mostly just worried that there might have been a
design decision against allowing this.  I'll keep adding bits back until it
fails.

On Tue, Jul 24, 2012 at 3:21 PM, Nick Fagerlund <
[email protected]> wrote:

> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to