Bug #1173
Having a manifest file with the same name as a directory inside a module fails to load the class
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | - | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
For example: module/class.pp module/class/subclass.pp
Attempting to load module::class will fail, saying that it can’t import a directory.
I’ve made a fix for this, but I’m not sure it’s the best way to do it, basically I just append “.pp” to and imports that it tries to do. Works for me. It can be found here in commit: “900e481”:http://github.com/shadoi/puppet/commit/900e4814482d02f6c000f992aa891d06ee8273a2
History
Updated by Luke Kanies about 4 years ago
- Status changed from 1 to Closed
- 7 set to fixed
Fixed in [3718b64].
I couldn’t use the mentioned commit, because it had the check too far into the process. Instead, the fix is at the point where the file list is collected.