summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Schmitt <david@dasz.at>2010-04-29 17:32:40 +0200
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commite119b04f7738f5ffb6b9bf353bb28b3d058302a5 (patch)
treef711cd2bc6033f374f28b17b366865bd6d036c3e /lib
parentd40e6d4bb6d899000b34422950412e90fb1d69dd (diff)
downloadpuppet-e119b04f7738f5ffb6b9bf353bb28b3d058302a5.tar.gz
puppet-e119b04f7738f5ffb6b9bf353bb28b3d058302a5.tar.xz
puppet-e119b04f7738f5ffb6b9bf353bb28b3d058302a5.zip
Avoid setting the timeout before we know which timeout we should set.
Signed-off-by: David Schmitt <david@dasz.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util/settings.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb
index b2563e996..82d2d4533 100644
--- a/lib/puppet/util/settings.rb
+++ b/lib/puppet/util/settings.rb
@@ -308,13 +308,13 @@ class Puppet::Util::Settings
def parse
raise "No :config setting defined; cannot parse unknown config file" unless self[:config]
- # Create a timer so that this file will get checked automatically
- # and reparsed if necessary.
- set_filetimeout_timer()
-
@sync.synchronize do
unsafe_parse(self[:config])
end
+
+ # Create a timer so that this file will get checked automatically
+ # and reparsed if necessary.
+ set_filetimeout_timer()
end
# Unsafely parse the file -- this isn't thread-safe and causes plenty of problems if used directly.