Issue #8102 has been updated by Andreas Roth.

I used the quotes to get my configuration running. But this issue is an 
inconsistency in the language, because i don't have to use quotes for regular 
variables (e.g. global variables).
----------------------------------------
Bug #8102: parser cannot handle negative variable values for classes
https://projects.puppetlabs.com/issues/8102

Author: Andreas Roth
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.7.1
Keywords: 
Branch: 


The folloing code results in an error message:
    class test($var = -3) {
    }
    class {
    'test':
    var => -5;
    }
    
The error message is as follows:
Could not parse for environment production: Syntax error at '-'; expected ')' 
at /tmp/minus.pp:1 on node xxx



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

Reply via email to