Issue #16221 has been updated by eric sorenson.

This change appeared in

<pre>
commit 9d608ea176224f38c6af349883065d9363dd1bb1
Author: Luke Kanies <[email protected]>
Date:   Wed Jun 8 22:36:25 2011 -0700

    Resource type defaults cleanup
    
    This is again done to make support for hiera easier.
    The way we were handling lookup of resource defaults
    was over-complicated.
    
    This does a decent bit of cleanup overall, but primarily
    focused on resource type defaults and how they get
    set during compilation.
    
    Signed-off-by: Luke Kanies <[email protected]>
    Reviewed-by: Nick Lewis <[email protected]>

:040000 040000 545070cf71d1bf6ec2007656f93e07ff847bdcba 
fa6c5706cd13f2cc0a086451cc9703b12e736b5d M      lib
:040000 040000 8e62373568cb21e917857e7f603e7730871783f6 
7e9539505ce12b91c0816b546f6c5f93743f6e23 M      spec
bisect run success
</pre>
----------------------------------------
Bug #16221: Passing undef as argument to classes & defines overrides default 
parameter
https://projects.puppetlabs.com/issues/16221#change-70510

Author: Erik Dalén
Status: Investigating
Priority: Normal
Assignee: eric sorenson
Category: 
Target version: 3.0.0
Affected Puppet version: 3.0.0-rc5
Keywords: parameter undef
Branch: 


In puppet 3.0.0-rc5 the default value is overridden if I pass undef as a 
parameter to a define or class.

Example:

    define bar ($param='Hello world') {
      notice($param)
    }
    define foo ($param=undef) {
      bar { 'bartest': param => $param }
    }
    foo { 'footest': }

In puppet 2.7.19 that outputs:
    notice: Scope(Bar[bartest]): Hello world
    
But in puppet 3.0.0-rc5 I get:
    Scope(Bar[test]): 


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