Issue #2523 has been updated by Luke Kanies.
seph seph wrote: > Ah, that sounds like exactly what I'm looking for -- a way to explicitly grab > a module only. > > I'm still at least a little confused about how modules are ideally supposed > to work. When to use an import, an include, or both. I observe that "include > ntp" works, modulo these namespace issues. "include ::ntp" only works if ntp > has already been imported. > > That is: > > |_. fails |_. works| > |[...] | [...] | > > All my code for the ntp module is in init.pp, and I think the docs say the > import shouldn't be needed. This is a different bug -- 'include ::ntp' doesn't autoimport. Can you file it separately? ---------------------------------------- Bug #2523: Classes with the same name are not included http://projects.reductivelabs.com/issues/2523 Author: Robin Bowes Status: Duplicate Priority: Normal Assigned to: Luke Kanies Category: language Target version: Complexity: Unknown Affected version: 0.25.0rc1 Keywords: Consider the following example (written by Volcane): <pre> class foo { notice("Inside foo!") } class bar::foo { include foo notice("inside bar::foo") } include bar::foo </pre> This produces the following output: <pre> notice: Scope(Class[bar::foo]): inside bar::foo </pre> ie. foo is not included. If class bar::foo is remaned to bar::foo2, it produces the correct output: <pre> notice: Scope(Class[foo]): Inside foo! notice: Scope(Class[bar::foo2]): inside bar::foo </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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
