From 7650fb299768c23241784671e3abeb272ee87fab Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Fri, 22 May 2009 14:45:35 -0500 Subject: Not trying to load files that get removed in pluginsyncing Previously any changed file got loaded; now we only try to load files that are still present. Signed-off-by: Luke Kanies --- lib/puppet/configurer/plugin_handler.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/puppet') diff --git a/lib/puppet/configurer/plugin_handler.rb b/lib/puppet/configurer/plugin_handler.rb index def6a1707..e934f5877 100644 --- a/lib/puppet/configurer/plugin_handler.rb +++ b/lib/puppet/configurer/plugin_handler.rb @@ -13,6 +13,7 @@ module Puppet::Configurer::PluginHandler end def load_plugin(file) + return unless FileTest.exist?(file) return if FileTest.directory?(file) begin -- cgit