Issue #12888 has been updated by Patrick Carlisle.

Status changed from Unreviewed to Duplicate

Thanks. This is a known issue that we are looking at. For now using {} seems to 
be the recommended workaround.
----------------------------------------
Bug #12888: Puppet variable name interpretation bug
https://projects.puppetlabs.com/issues/12888#change-56556

Author: Alex Thompson
Status: Duplicate
Priority: Normal
Assignee: 
Category: parser
Target version: 
Affected Puppet version: 2.7.10
Keywords: variable, name, parser
Branch: 


Starting somewhere between server versions 2.6.9 and 2.7.10, the interpretation 
of variable names broke in a surprising way.

$baz="one"
$fu = "two"

foo { "bar-$baz-$fu":
...
}

Results in Foo["bar-one"] on 2.7.10. On 2.6.9 this would correctly be 
Foo["bar-one-two"]. Properly encapsulating the variables in ${} fixes the 
problem, so its not intractable, but the behavior of simply discarding 
everything after the first variable name without throwing an explicit error 
seems broken to me.


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