Issue #5268 has been updated by eric sorenson.
Nigel Kersten wrote:
> Didn't we actually commit this fix and that's why people have been having to
> interpolate variables in strings with hyphens?
>
> e.g.
>
> `foo-bar-$baz-spa` used to work but now you have to do `foo-bar-${baz}-spa` ?
That's not exactly the use case in question (though it might be related under
the hood). The thing we're getting bit by (PE1.2/2.6.9) is when the class' name
is "foo-bar" and you want to use variable baz elsewhere:
`$localvar = "${foo-bar::baz}"
"syntax error at 'bar::baz', expected '}'"`
Unquoted without curly braces, same result.
Unquoted with curly braces.
`$localvar = ${foo-bar::baz}
...Could not match ${foo-bar::baz}`
----------------------------------------
Bug #5268: hyphen in class name messes with qualified variables
https://projects.puppetlabs.com/issues/5268
Author: Eric Snow
Status: Needs More Information
Priority: Normal
Assignee: Jacob Helwig
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
$module::class-name::variable
This tricks puppet. I suppose it thinks the "-" is a minus...
--
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.