Issue #10146 has been updated by Daniel Pittman.

Nigel Kersten wrote:
> R.I. Pienaar wrote:
> > My vote is to make '-' illegal in variable names.  Allowing people to 
> > create variables they cannot use in a template without resorting to 
> > lookupvar() is not a good feature.  
> > 
> > Given the really large number of bugs this feature has caused since the 
> > decision was made to officially allow it I think at some point we should 
> > concede its a bad, undeliverable, idea
> 
> I'm not sure what the most practical deprecation plan is here though.
> Do we start throwing deprecation warnings in 2.7.x and remove it in Telly?
> I don't really want this to live on longer than that if possible.

Given that this is much worse than the usual "works, but not awesomely" feature 
that has a longer deprecation cycle, I think this would be appropriate.  This 
is more or less *broken* right now for people trying to use the product, so 
getting it gone faster seems solid.
----------------------------------------
Bug #10146: Puppet interpolates variables differently in 2.7.x
https://projects.puppetlabs.com/issues/10146

Author: Philip Gardner
Status: Needs Decision
Priority: High
Assignee: Nigel Kersten
Category: language
Target version: 2.7.x
Affected Puppet version: 2.7.5
Keywords: 
Branch: 


I'm not sure when this changed, but I recently upgraded from 2.6.7 to 2.7.5.

Given: file { "/usr/local/$lsbdistid-$architecture": ensure => directory }

In 2.6.7 the following would generate a directory name called 
"/usr/local/CentOS-x86_64":

However, in 2.7.5, this now creates a directory called "/usr/local/-x86_64"

If you escape the variables, the resource is created correctly, however this 
wasn't clear until I jumped on IRC.


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