Bug #4397
A toplevel class is shadowing a class inside a namespace when it shouldn't
| Status: | Closed | Start date: | 07/29/2010 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | parser | |||
| Target version: | 2.6.1 | |||
| Affected Puppet version: | 2.6.1rc1 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
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
Related issues
History
Updated by Jesse Wolfe almost 2 years ago
- Priority changed from Normal to High
Updated by Markus Roberts almost 2 years ago
- Status changed from Unreviewed to In Topic Branch Pending Review
If the branch for #4344 fixes this, it should be closed as a duplicate (though it wouldn’t hurt to add it as a regression test).
Updated by Markus Roberts almost 2 years ago
- Status changed from In Topic Branch Pending Review to Closed