Issue #2116 has been updated by immerda.

Status changed from Unreviewed to Rejected

areek194 wrote:
> I have inside nodes.pp:
> 
> include some_client_${operatingsystem} 
> 
> and this line causing problems when I change  it to :
> 
> include some_client_$operatingsystem
> 
> it is working and I don't get any errors

Well according to 
http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#quoting you need to 
put that in quotes, so use it as a string, then it will work. As far as I 
understand the language tutorial, it's nowhere stated, that what you try to do 
should work. If you find other or unclear documentation, please let us know.

I agree that it might be confusing that the version without brackets works, 
however the Language Tutorial clearly mentions that: "Variables in strings can 
be bracketed with {} for further clarification:".
----------------------------------------
Bug #2116: variable in braces " {} " doesn't work in nodes.pp
http://projects.reductivelabs.com/issues/2116

Author: areek194
Status: Rejected
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.7
Keywords: 


I got :
err: Could not retrieve catalog: Could not parse for environment production: 
Could not match '${operatingsystem}' at /etc/manifests/nodes.pp:24




----------------------------------------
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://reductivelabs.com/redmine/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