Issue #3773 has been updated by Andrew Parker.

Status changed from Needs More Information to Rejected

This syntax is being deprecated because of this and other issues that crop up 
from it. Therefore this won't be fixed and I'm closing out the ticket.
----------------------------------------
Bug #3773: Can't use "timeout" as a variable name in an erb template
https://projects.puppetlabs.com/issues/3773#change-82557

Author: Robin Bowes
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.25.4
Keywords: template erb
Branch: 


I got this error when puppet tried to parse a template:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed 
to parse template pulse/lvs.cf.virtual.erb: wrong number of arguments (0 for 1) 
at /etc/puppet/modules/pulse/manifests/config.pp:121 on node 
a003.private.a.statcounter.com

I debugged the content of the template until I found that a template containing 
this single line caused the same error:

timeout = <%= timeout %>

I worked around this by changing the variable name to timeout_value:

timeout = <%= timeout_value %>


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to