Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `int_name' #216

Closed
lkthomas opened this issue May 12, 2016 · 3 comments · Fixed by #217
Closed

undefined local variable or method `int_name' #216

lkthomas opened this issue May 12, 2016 · 3 comments · Fixed by #217

Comments

@lkthomas
Copy link

2016-05-12T09:32:43.637658+08:00 openvpn puppet-agent[9645]: Starting Puppet client version 4.4.2
2016-05-12T09:32:47.559683+08:00 openvpn puppet-agent[9649]: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Failed to parse inline template: undefined local variable or method `int_name' for #Puppet::Parser::TemplateWrapper:0x30ffee23 at /etc/puppetlabs/code/environments/production/modules/zabbix/manifests/agent.pp:269:20 on node .com

any idea what is this?

@lkthomas
Copy link
Author

It's complaining this line from agent.pp:

$listen_ip = inline_template('<%= scope.lookupvar(int_name) %>')

bastelfreak added a commit to bastelfreak/puppet-zabbix that referenced this issue May 12, 2016
this addresses voxpupuli#216
getvar() comes from stdlib, scope.lookupvar is a dirty erb hack.
@bastelfreak bastelfreak mentioned this issue May 12, 2016
@bastelfreak
Copy link
Member

@lkthomas I maybe fixed it in #217. Do you want to test?

Interesting that our tests didn't complain.

@lkthomas
Copy link
Author

Can you merge it to master? I don't know how to get a particular code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants