So, many moons ago, the following used to work: require ''puppet'' Puppet::Parser::Functions::function(:mangle_ip_address) s = Puppet::Parser::Scope.new # Mask the ipaddress variable s.setvar(''ipaddress'',''11.22.33.44'') s.mangle_ip_address However, now that we have to call ''lookupvar'' in our functions, this doesn''t work and gives the error: NoMethodError: undefined method `known_resource_types'' for nil:NilClass from /usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection_helper.rb:5:in `known_resource_types'' Does anyone have any ideas on how to get this working again? Thanks, Trevor -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaughan@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- 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.