Issue #9850 has been updated by Philip Jameson.
Yes, after submitting this bug, I realized it may work a little better as a property. Originally, I didn't really care about the initial state, so I was using it as a parameter, but I've moved it to a property now. Your summary is correct as well, the only exception being, I believe that when I was working on this before that it was only single-element arrays that exhibited this problem. If I had a multi-element array, it would pass the value to the custom type as an array, regardless of whether I was using a property or a parameter. ---------------------------------------- Bug #9850: Arrays changed to strings in custom type parameters https://projects.puppetlabs.com/issues/9850 Author: Philip Jameson Status: Needs More Information Priority: Normal Assignee: Jacob Helwig Category: Target version: Affected Puppet version: Keywords: Branch: I'm currently configuring a puppet setup. Puppetmaster and puppet client are both version 2.7.3, and ruby version 2.8.7 patch level 352 I was creating a custom type, and had an element as a parameter. When that parameter had a single element, puppet sent it as a string, rather than as an array. If I changed it from a parameter to a property, it showed up correctly on the client as an array. Excerpt from type (nothing special here): newparam(:allowed_ips, :array_matching => :all) do defaultto :absent end In the provider, it then would be an array only if more than one element was specified in the manifest. Let me know what other details you need. -- 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 [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-bugs?hl=en.
