summaryrefslogtreecommitdiffstats
path: root/lib/puppet/configuration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/configuration.rb')
-rw-r--r--lib/puppet/configuration.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/puppet/configuration.rb b/lib/puppet/configuration.rb
index 074e656e0..f67be5999 100644
--- a/lib/puppet/configuration.rb
+++ b/lib/puppet/configuration.rb
@@ -19,19 +19,16 @@ module Puppet
)
if self.name == "puppetmasterd"
- self.setdefaults(:puppetmasterd,
- :logdir => {:default => "$vardir/log",
- :mode => 0750,
- :owner => "$user",
- :group => "$group",
- :desc => "The Puppet log directory."
- }
- )
+ logopts = {:default => "$vardir/log",
+ :mode => 0750,
+ :owner => "$user",
+ :group => "$group",
+ :desc => "The Puppet log directory."
+ }
else
- self.setdefaults(:puppet,
- :logdir => ["$vardir/log", "The Puppet log directory."]
- )
+ logopts = ["$vardir/log", "The Puppet log directory."]
end
+ setdefaults(:puppet, :logdir => logopts)
self.setdefaults(:puppet,
:trace => [false, "Whether to print stack traces on some errors"],