Issue #5268 has been updated by Andrew Parker. Status changed from Accepted to Closed
I'm closing this ticket with the following resolution: There have been several attempts to come to a solution on this issue, but none have lead to a better situation. So here is where it is going to have to live: hyphens are allowed in class names by the parser, but they are highly discouraged and not a documented feature. If you use hyphens in your class names, then you won't be able to reference variables inside the class. There is also the possibility that pluginsync will fail because of the hyphens (when they appear in the filename). Messing with such a fundamental aspect of the syntax of the language is prone to breaking far too much existing manifest code. >From #17260, there is a flag that allows hyphens to be used in variable names, >but that is a deprecated feature of the language and will be removed later. ---------------------------------------- Bug #5268: hyphen in class name messes with qualified variables https://projects.puppetlabs.com/issues/5268#change-75363 Author: Eric Snow Status: Closed Priority: Normal Assignee: eric sorenson Category: Target version: 3.x Affected Puppet version: Keywords: Branch: $module::class-name::variable This tricks puppet. I suppose it thinks the "-" is a minus... -- 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.
