summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/settings.rb')
-rw-r--r--lib/puppet/util/settings.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb
index 80cab1976..5573145b5 100644
--- a/lib/puppet/util/settings.rb
+++ b/lib/puppet/util/settings.rb
@@ -308,7 +308,7 @@ class Puppet::Util::Settings
# Create a timer so that this file will get checked automatically
# and reparsed if necessary.
- set_filetimeout_timer()
+ set_filetimeout_timer
end
# Unsafely parse the file -- this isn't thread-safe and causes plenty of problems if used directly.
@@ -343,7 +343,7 @@ class Puppet::Util::Settings
settings_with_hooks.each do |setting|
each_source(env) do |source|
if value = @values[source][setting.name]
- # We still have to use value() to retrieve the value, since
+ # We still have to use value to retrieve the value, since
# we want the fully interpolated value, not $vardir/lib or whatever.
# This results in extra work, but so few of the settings
# will have associated hooks that it ends up being less work this
@@ -421,7 +421,7 @@ class Puppet::Util::Settings
if file and file.changed?
Puppet.notice "Reparsing #{file.file}"
parse
- reuse()
+ reuse
end
end
@@ -557,7 +557,7 @@ class Puppet::Util::Settings
# Create a timer to check whether the file should be reparsed.
def set_filetimeout_timer
return unless timeout = self[:filetimeout] and timeout = Integer(timeout) and timeout > 0
- timer = EventLoop::Timer.new(:interval => timeout, :tolerance => 1, :start? => true) { self.reparse() }
+ timer = EventLoop::Timer.new(:interval => timeout, :tolerance => 1, :start? => true) { self.reparse }
end
# Convert the settings we manage into a catalog full of resources that model those settings.
@@ -688,7 +688,7 @@ if @config.include?(:run_mode)
return nil unless @config.include?(param)
# Yay, recursion.
- #self.reparse() unless [:config, :filetimeout].include?(param)
+ #self.reparse unless [:config, :filetimeout].include?(param)
# Check the cache first. It needs to be a per-environment
# cache so that we don't spread values from one env