Issue #17206 has been reported by R.I. Pienaar.

----------------------------------------
Bug #17206: parameter defaults of false and {} does not work
https://projects.puppetlabs.com/issues/17206

Author: R.I. Pienaar
Status: Unreviewed
Priority: Normal
Assignee: 
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