Issue #3665 has been updated by Brice Figureau.

It's actually more broken than what I first thought because even with the 
aforementioned patch the following manifest fails:

<pre>
node base {
        $array = ['1', '2']
        notice("main array is ${array}")
}

node macbook inherits base {
        $array += ['3']

        notice("node array is ${array}")
}
</pre>

The fix is terribly easy, unfortunately there are lots of test failures in 
spec/unit/resource/type.rb that I can't find how to solve, and that prevents me 
from sending a fix containing a test :-(
----------------------------------------
Bug #3665: Node scope inheritance is broken in testing
http://projects.puppetlabs.com/issues/3665

Author: Brice Figureau
Status: Unreviewed
Priority: Normal
Assigned to: Markus Roberts
Category: compiler
Target version: Rowlf
Affected version: testing
Keywords: 
Branch: http://github.com/masterzen/puppet/tree/tickets/testing/3665


The following manifest (which works in 0.25.x) doesn't work anymore in testing

<pre>
$topvar = 12
notice("topvar in main is : ${topvar}")

node macbook {
        notice("topvar in node is : ${topvar}")
}
</pre>

On testing it produces (notice the undef in node):
<pre>
notice: Scope(Class[main]): topvar in main is : 12
notice: Scope(Node[macbook]): topvar in node is : undef
</pre>

On 0.25.x it produces:
<pre>
notice: Scope(Class[main]): topvar in main is : 12
notice: Scope(Node[macbook]): topvar in node is : 12
</pre>




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