Issue #8102 has been updated by Jason Short.
Status changed from Accepted to Closed
The following code works without errors on Puppet 2.7.9 on Ubuntu 11.10 (Ruby
1.8.7)
<pre>
class test($var = -3) {
}
class {
'test':
var => -5;
}
</pre>
----------------------------------------
Bug #8102: parser cannot handle negative variable values for classes
https://projects.puppetlabs.com/issues/8102
Author: Andreas Roth
Status: Closed
Priority: Normal
Assignee:
Category:
Target version: 2.7.x
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.