Title: Message Title
Josh Cooper commented on an issue
Puppet / Bug PUP-1299
Deprecate and eliminate magic parameter array handling
Puppet's parser will automatically de-arrayify single element arrays for parameters (and properties). See `lib/puppet/parser/resource.rb`

{code}
result[p] = if v.is_a?(Array) and v.length == 1
                    v[0]
                  else
                    v
                  end
{code}

As a result when writing a custom type, the parameter...

--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to