Trying to use extlookup from within template i use <%= scope.function_extlookup("blah") %> but get the undefined method `function_extlookup'' error According to http://docs.puppetlabs.com/guides/templating.html#access-to-variables-and-puppet-functions-with-the-scope-object this should work. Thanks Alex -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Meier
2011-Sep-07 11:22 UTC
Re: [Puppet Users] undefined method `function_extlookup''
On 09/07/2011 11:44 AM, piavlo wrote:> Trying to use extlookup from within template i use > > <%= scope.function_extlookup("blah") %> > > but get the undefined method `function_extlookup'' error > > According to http://docs.puppetlabs.com/guides/templating.html#access-to-variables-and-puppet-functions-with-the-scope-object > this should work.http://projects.puppetlabs.com/issues/4549 it will work in the next 2.7 minor version, so long you have to use MarkusQ''s workaround, to load the function to make it available. ~pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.