On Fri, 2010-08-20 at 16:00 +0200, Frederik Wagner wrote:
> Hi group,
> 
> today I updated puppet from 0.25.5 to 2.6.0 and I'm running into a
> problem of a self defined function taken from
> <http://pastie.org/666728>. It's the multi_source_template function
> which takes the first available template from the argument as the one
> to be processed.
> This function was running well until version 0.25.5 but now with 2.6.0
> I get the error message:
> "err: undefined method `to_sym' for
> #<Puppet::Node::Environment:0x7f9921291140> at
> /etc/puppet/modules/network-1/manifests/init.pp:66 on node
> XYZ.mydomain.de"
> 
> This error is triggered by the function call of
> "Puppet::Parser::Files.find_template(file, environment)".
> Can you help me with this problem, since upgrading to 2.6.0 would be
> very nice :-)

Rewrite "Puppet::Parser::Files.find_template(file, environment)" to:

Puppet::Parser::Files.find_template(file, environment.to_s)

You should better run 2.6.1rc2 than 2.6.0 as some serious bugs have been
fixed in this version.
-- 
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to