diff options
Diffstat (limited to 'lib/puppet/network/authconfig.rb')
-rw-r--r-- | lib/puppet/network/authconfig.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/network/authconfig.rb b/lib/puppet/network/authconfig.rb index 932d6da6d..ba2caa473 100644 --- a/lib/puppet/network/authconfig.rb +++ b/lib/puppet/network/authconfig.rb @@ -6,7 +6,7 @@ module Puppet class Network::AuthConfig < Puppet::Util::LoadedFile def self.main - @main ||= self.new() + @main ||= self.new end # Just proxy the setting methods to our rights stuff @@ -23,7 +23,7 @@ module Puppet namespace = request.handler.intern method = request.method.intern - read() + read if @rights.include?(name) return @rights[name].allowed?(request.name, request.ip) @@ -49,7 +49,7 @@ module Puppet @configstamp = @configstatted = nil @configtimeout = 60 - read() if parsenow + read if parsenow end # Read the configuration file. @@ -75,7 +75,7 @@ module Puppet end end - parse() + parse @configstamp = File.stat(@file).ctime @configstatted = Time.now |