Issue #3129 has been updated by Andrew Parker.

Target version deleted (2.7.x)


----------------------------------------
Bug #3129: Problem using a number as as class name
https://projects.puppetlabs.com/issues/3129#change-80237

Author: Mike Culbertson
Status: Accepted
Priority: Normal
Assignee: 
Category: RAL
Target version: 
Affected Puppet version: 0.25.3
Keywords: 
Branch: 


I've run into what looks like a bug when using a number as a class name in a 
nested class.  There are no errors while parsing the class itself, but when the 
manifest gets to the point where I actually include the class, this happens:
<pre>
err: Could not parse for environment development: Syntax error at ':'; expected 
'}' at /etc/puppet/development/modules/sol/manifests/init.pp:77
</pre>

The include line is:
<pre>
include sol::network::10
</pre>

If I double-quote the class name, the error does not occur.  I've attached 
debug+trace logs from puppetd, puppetmasterd and a (slightly redacted) copy of 
the init.pp from the module in question.  This is the only manifest in this 
particular module.  However, I do have numeric class names elsewhere in other 
modules, and they all erorred out the same way until I quoted the class names, 
so it does not appear to be unique to this module or class.

TIA

-Mike



-- 
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