Puppet: System Administration Automated

Support

Ticket #1173 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Having a manifest file with the same name as a directory inside a module fails to load the class

Reported by: shadoi Assigned to: shadoi
Priority: normal Milestone:
Component: library Version: 0.24.4
Severity: normal Keywords: module import directory
Cc: Triage Stage: Unreviewed
Attached Patches: Code Complexity: Unknown

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

Change History

04/01/08 03:21:45 changed by shadoi

  • owner changed from community to shadoi.

04/10/08 22:49:51 changed by luke

  • status changed from new to closed.
  • resolution 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.