summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-12-10 17:59:51 -0600
committerLuke Kanies <luke@madstop.com>2007-12-10 17:59:51 -0600
commit7a4ae082c216d68092f140ed1f5cca40ffb1a09e (patch)
tree18404a765506d34f959f2e4880939b157eb735a6 /lib/puppet
parent3790ce1c6463e0d44ae0151fdc24000b9d5ede27 (diff)
downloadpuppet-7a4ae082c216d68092f140ed1f5cca40ffb1a09e.tar.gz
puppet-7a4ae082c216d68092f140ed1f5cca40ffb1a09e.tar.xz
puppet-7a4ae082c216d68092f140ed1f5cca40ffb1a09e.zip
Fixing the rest of #948. My previous work was sufficient,
except that I was not passing the interpolated value in to the hook, which meant the libdir was set to something like $vardir/lib.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/settings.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb
index 4a802d424..7b446e736 100644
--- a/lib/puppet/util/settings.rb
+++ b/lib/puppet/util/settings.rb
@@ -308,7 +308,12 @@ class Puppet::Util::Settings
settings_with_hooks.each do |setting|
each_source(env) do |source|
if value = @values[source][setting.name]
- setting.handle(value)
+ # 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
+ # way overall.
+ setting.handle(self.value(setting.name, env))
break
end
end