Issue #4428 has been updated by Michael Stahnke.

Target version changed from 2.7.1 to 2.7.x


----------------------------------------
Bug #4428: resource titles should allow "::" without requiring quoting for 
parameterized class declaration
https://projects.puppetlabs.com/issues/4428

Author: Stefan Schimanski
Status: Accepted
Priority: Normal
Assignee: 
Category: parser
Target version: 2.7.x
Affected Puppet version: 
Keywords: parameterized classes
namespaces
parser
parameterized_classes
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to