Issue #4397 has been updated by Markus Roberts.

Status changed from Ready for Testing to Closed

commit:449315a2c705df2396852462a1d1e14774b9f117 [#4397]+[#4344] Move type-name 
resolution out of Puppet::Resource into the AST 

----------------------------------------
Bug #4397: A toplevel class is shadowing a class inside a namespace when it 
shouldn't
http://projects.puppetlabs.com/issues/4397

Author: Jesse Wolfe
Status: Closed
Priority: High
Assigned to: 
Category: parser
Target version: 2.6.1
Affected version: 2.6.1rc1
Keywords: 
Branch: 


When running this manifest:

    class foo {
      class bar {
      }
      notify { "test" : require => Class[Bar] }
    }
    class bar {
    }
    include foo
    include foo::bar

An error is thrown: "Could not find dependency Class[Bar] for Notify[test] at 
line 4"

If the outer "class bar" definition is removed, the manifest compiles correctly.
Expected behavior: Class[Bar] should refer to Foo::Bar


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