From 892055709a7e0b628758d24aba7590fd3c78426b Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 13 Feb 2008 17:29:23 -0600 Subject: Fixing #1064 -- providers et al are now autoloaded from modules even when Autoload#loadall is used. --- lib/puppet/util/autoload.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/puppet/util/autoload.rb') diff --git a/lib/puppet/util/autoload.rb b/lib/puppet/util/autoload.rb index 5f13d936b..535d9ef2e 100644 --- a/lib/puppet/util/autoload.rb +++ b/lib/puppet/util/autoload.rb @@ -112,9 +112,8 @@ class Puppet::Util::Autoload Dir.glob("#{dir}/*.rb").each do |file| name = File.basename(file).sub(".rb", '').intern next if loaded?(name) - rubypath = File.join(@path, name.to_s) begin - Kernel.require rubypath + Kernel.require file loaded(name, file) rescue => detail if Puppet[:trace] -- cgit