diff options
| author | Markus Roberts <Markus@reality.com> | 2010-07-07 17:13:19 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-07 17:13:19 -0700 |
| commit | 70af43f915110b806dc156fd09c3aa8ec7b0fe0d (patch) | |
| tree | ed7e69aa9db0d58f523bf299d1f60e8896699fc7 /lib/puppet | |
| parent | 2c88884f892a869b4111739c2c5ff40994e5ed87 (diff) | |
| download | puppet-70af43f915110b806dc156fd09c3aa8ec7b0fe0d.tar.gz puppet-70af43f915110b806dc156fd09c3aa8ec7b0fe0d.tar.xz puppet-70af43f915110b806dc156fd09c3aa8ec7b0fe0d.zip | |
Fix for #4167 -- overriding file permissions in conf file
The logic which iterates over the searchpath in reverse does not translate the name.
Therefore file overrides in :master or :agent are not picked up.
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/util/settings.rb | 1 | ||||
| -rw-r--r-- | lib/puppet/util/settings/file_setting.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb index e1f7c3578..992371367 100644 --- a/lib/puppet/util/settings.rb +++ b/lib/puppet/util/settings.rb @@ -364,6 +364,7 @@ class Puppet::Util::Settings # because multiple sections could set the same value # and I'm too lazy to only set the metadata once. searchpath.reverse.each do |source| + source = run_mode if source == :run_mode if meta = metas[source] set_metadata(meta) end diff --git a/lib/puppet/util/settings/file_setting.rb b/lib/puppet/util/settings/file_setting.rb index 732af0b09..6f0f315eb 100644 --- a/lib/puppet/util/settings/file_setting.rb +++ b/lib/puppet/util/settings/file_setting.rb @@ -3,7 +3,7 @@ require 'puppet/util/settings/setting' # A file. class Puppet::Util::Settings::FileSetting < Puppet::Util::Settings::Setting AllowedOwners = %w{root service} - AllowedGroups = %w{service} + AllowedGroups = %w{root service} class SettingError < StandardError; end |
