Issue #3129 has been updated by Luke Kanies.

Status changed from Needs design decision to Accepted
Assigned to deleted (Luke Kanies)
Target version changed from 0.25.5 to Statler

I just looked into it, and we have a NUMBER token but the grammar doesn't ever 
mention it, because it just returns NAME.  I.e., we should just get rid of it 
and have NAME be entirely alphanumber, including plain numbers.

This should be easy and work fine.

Obviously not a 0.25.5 ticket, though, unless this is a new bug.
----------------------------------------
Bug #3129: Problem using a number as as class name
http://projects.reductivelabs.com/issues/3129

Author: Mike Culbertson
Status: Accepted
Priority: Normal
Assigned to: 
Category: RAL
Target version: Statler
Affected 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://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.

Reply via email to