Issue #17206 has been updated by eric sorenson.

Status changed from Unreviewed to Investigating
Assignee set to Andrew Parker

Andy could one of the developers please look at this issue.

Also cc'ing Nan and Dan who know more about the provider system than is good 
for them. Feel free to chime in, guys.
----------------------------------------
Bug #17206: parameter defaults of false and {} does not work
https://projects.puppetlabs.com/issues/17206#change-77839

Author: R.I. Pienaar
Status: Investigating
Priority: Normal
Assignee: Andrew Parker
Category: 
Target version: 
Affected Puppet version: 3.0.1
Keywords: 
Branch: 


In a type I have:

<pre>
newparam(:arguments) do
   desc "The arguments to send to the action"
  
   defaultto {}
end
</pre>

If I do not set the property and check in my provider the value would be nil 
instead of {}.  If instead of defaulting to {} I default to [] then the correct 
empty array gets to the provider.

Similarly defaulting to false ends up being a nil.


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

Reply via email to