Issue #4428 has been updated by Jesse Wolfe. Status changed from Ready for Testing to Needs design decision Target version changed from 2.6.1 to queued
(is that last comment really from me? I don't think I wrote that.) There's currently a parser limitation that unquoted resource titles cannot have colons. This is counter-intuitive, in the case of namespaced class names as titles in the class instantiation syntax. Actually, I might expect string-quoted class names to be fully qualified, while unquoted classes might be looked up in the current namespace. I see room for debate about this, so I'm marking it "needs design decision" ---------------------------------------- Bug #4428: Parameterized classes in namespaces result in strange syntax in nodes http://projects.puppetlabs.com/issues/4428 Author: Stefan Schimanski Status: Needs design decision Priority: Normal Assigned to: Jesse Wolfe Category: parser Target version: queued Affected version: Keywords: parameterized classes namespaces parser Branch: Consider a namespace with a parameterized class: class bla { class foo { } class bar ($x=42) { notify { "x = $x": } } } To include the nested class into a node one would write: node default { include bla::foo class { bla::bar: x => 42 } } which does not work as bla::bar is not a allowed symbol by the parser. You have to quote it: node default { include bla::foo class { "bla::bar": x => 42 } } IMHO, Using the title attribute is very strange with this odd syntax as a consequence. Why isn't there something like: include bla::foo { x => 42 } ? -- 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.
