summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/scope.rb
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-04-14 15:53:51 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-04-14 15:53:51 -0700
commit5528911bd6fd784ed9550ed475f240a64c7a56fb (patch)
treea945330e0a272bf29ec736d900e3bd9111342150 /lib/puppet/parser/scope.rb
parente945cea00512d33c3d9d262b8285896febf946a3 (diff)
downloadpuppet-5528911bd6fd784ed9550ed475f240a64c7a56fb.tar.gz
puppet-5528911bd6fd784ed9550ed475f240a64c7a56fb.tar.xz
puppet-5528911bd6fd784ed9550ed475f240a64c7a56fb.zip
(#7111) Clarify scoping deprecation warning
This modifies the deprecation warning to explicitly point out that the specified behavior is deprecated, when it is slated to be removed, along with what the user can do to prepare for its removal. Paired-with: Randall Hansen <randall@puppetlabs.com>
Diffstat (limited to 'lib/puppet/parser/scope.rb')
-rw-r--r--lib/puppet/parser/scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb
index 8de9d60b1..99f1c6ee2 100644
--- a/lib/puppet/parser/scope.rb
+++ b/lib/puppet/parser/scope.rb
@@ -238,7 +238,7 @@ class Puppet::Parser::Scope
# We can't use "if table[name]" here because the value might be false
if options[:dynamic] and self != compiler.topscope
location = (options[:file] && options[:line]) ? " at #{options[:file]}:#{options[:line]}" : ''
- Puppet.deprecation_warning "Dynamic lookup of $#{name}#{location} will not be supported in future versions. Use a fully-qualified variable name or parameterized classes."
+ Puppet.deprecation_warning "Dynamic lookup of $#{name}#{location} is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes."
end
table[name]
elsif parent