summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-03-08 13:41:48 -0800
committerJacob Helwig <jacob@puppetlabs.com>2011-03-08 13:41:48 -0800
commit2092e61264899c742924a30148ebe1e079b60d38 (patch)
treeeee76afe656ac7b9443b5356fe673fd3cac25789 /lib/puppet
parent4a8c631a5f909c3e482e087f88cf618e1b44ee4e (diff)
parent64440e58967667426e7294ed38ad16e19812d8c4 (diff)
downloadpuppet-2092e61264899c742924a30148ebe1e079b60d38.tar.gz
puppet-2092e61264899c742924a30148ebe1e079b60d38.tar.xz
puppet-2092e61264899c742924a30148ebe1e079b60d38.zip
Merge branch 'ticket/2.6.x/6513-propigate-environment-in-settings-values' into 2.6.next
* ticket/2.6.x/6513-propigate-environment-in-settings-values: (#6513) Propagate the environment when doing variable lookup in settings (#6513) Adjust P::U::Settings test name to reflect what it tests
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb
index 626ed20eb..f243b8691 100644
--- a/lib/puppet/util/settings.rb
+++ b/lib/puppet/util/settings.rb
@@ -91,7 +91,7 @@ class Puppet::Util::Settings
varname = $2 || $1
if varname == "environment" and environment
environment
- elsif pval = self.value(varname)
+ elsif pval = self.value(varname, environment)
pval
else
raise Puppet::DevError, "Could not find value for #{value}"