Issue #1686 has been updated by Nick Fagerlund.

Status changed from Accepted to Duplicate

The later version of this bug has more context and discussion, so it gets to be 
the canonical one. 
----------------------------------------
Bug #1686: Class names containing '-' cannot be used to scope variables
https://projects.puppetlabs.com/issues/1686#change-68730

Author: Josh Anderson
Status: Duplicate
Priority: Normal
Assignee: 
Category: language
Target version: 
Affected Puppet version: 0.24.8
Keywords: 
Branch: 


Class names containing '-' cause a parse error when used to specify variable 
scope.

Sample manifest:

<pre>
class my-class {
  $test = "content"
}

class anotherclass {
  $other = $my-class::test
}
</pre>


And the parse error:
> err: Could not parse for environment production: Could not match 
> '-class::test' at /etc/puppet/manifests/test.pp:6


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