Afternoon all Is it possible to pass an array of key=value pairs to a provider param, and have the provider split and handle each key=value pair?
Basically, I've defined a new provider and type as follows: http://pastebin.com/WdekYPAh I've set '*:array_matching => all*' on the relevant newparam. However the puppet run is failing as follows: Error: Could not set 'present' on ensure: $_ value need to be String (nil > given) at 48:/etc/puppet/manifests/site.pp > Error: Could not set 'present' on ensure: $_ value need to be String (nil > given) at 48:/etc/puppet/manifests/site.pp > Wrapped exception: > $_ value need to be String (nil given) > Error: > /Stage[main]//Node[actint-star-nactl01]/Netapp_volume_options[v_puppet_test12111508]/ensure: > > change from absent to present failed: Could not set 'present' on ensure: $_ > value need to be String (nil given) at 48:/etc/puppet/manifests/site.pp > Debug logging shows: > ^[[0;36mDebug^[[0m: Puppet::Provider::netapp_volume_options: checking > value of Netapp Volume option on Volume v_puppet_test12111508 > ^[[0;36mDebug^[[0m: Puppet::Provider::netapp_volume_options: setting > Netapp Volume options against volume v_puppet_test12111508. > ^[[0;36mDebug^[[0m: Puppet::Provider::netapp_volume_options: Options: > x=ay=b > ^[[0;36mDebug^[[0m: Puppet::Provider::netapp_volume_options: Option: x=a > So it looks to me like it's getting the values correctly, and its trying to iterate through each value. If I strip out the code on line 17-19, then the logs show the following additional line. The puppet run also completes without error. > ^[[0;36mDebug^[[0m: Puppet::Provider::netapp_volume_options: Option: y=b > So, any ideas??? Thanks in advance for any replies. Regards Gavin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/neCIMOkh1JUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.