On 22/10/11 18:47, Brice Figureau wrote:
> On 05/10/11 19:46, Steve Snodgrass wrote:
>> While testing puppet 2.7, I found that one of my manifests broke
>> because of the following quoted string:
>>
>> "http://$yumserver/repos/vmware-$esxversion-rhel6-64";
>>
>> Everything in the resulting string after "vmware-" was blank.  After
>> some experiments I found that puppet 2.7 allows dashes in variable
>> names, and was interpreting "$esxversion-rhel6-64" as one big
>> variable.  Of course adding curly braces fixes the problem, but that
>> seems like a significant change.  Was it intended?
> 
> I don't know if it was intended, but there's a ticket open right now:
> http://projects.puppetlabs.com/issues/10146
> 
> Go watch it to increase the odds of it being fixed :)
> 
> I really believe '-' shouldn't be allowed at end of any variable name,
> which then should fix your problem.

Or not, because the lexer would tokenize $esxversion-rhel6 as the
variable name...
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to