Issue #10146 has been updated by Bostjan Skufca.

Yes, I am aware of that "workaround".

Anyway, there are 2 things to consider here:
1. It renders my (I don't mean to be egocentric here, applies to anyone in the 
same situation) whole module catalog useless if I upgrade to puppet 2.7.x.
2. It is much less readable: "${variable1}-${variable2}" vs 
"$variable1-$variable2". This also aligns with how programming languages/shells 
parse mentioned statements (end result is the same).

In order to speed up upgrade rate (which is probably your desire, because 
results in less support for old versions) I believe you should fix this one 
ASAP.

----------------------------------------
Bug #10146: Puppet interpolates variables differently in 2.7.x
https://projects.puppetlabs.com/issues/10146

Author: Philip Gardner
Status: Accepted
Priority: High
Assignee: 
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