summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-04-15 10:07:08 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-04-15 10:07:08 -0700
commit64bc8345fd29f17ce7be53187d0acf3fc61d2b58 (patch)
treeb5101475cd9055d4f67aa633125b75f382c87f8c /lib/puppet
parentd53c84de9985421e6c667f095a10574171ece159 (diff)
parenta509821f6c2da0a07bc63af433f6e36061d4f241 (diff)
downloadpuppet-64bc8345fd29f17ce7be53187d0acf3fc61d2b58.tar.gz
puppet-64bc8345fd29f17ce7be53187d0acf3fc61d2b58.tar.xz
puppet-64bc8345fd29f17ce7be53187d0acf3fc61d2b58.zip
Merge branch 'tickets/2.7.x/7111-deprecation-warning-wordsmithing' into 2.7.x
* tickets/2.7.x/7111-deprecation-warning-wordsmithing: Cleanup trailing whitespace (#7111) Clarify scoping deprecation warning
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/scope.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb
index 8de9d60b1..a8bb4418a 100644
--- a/lib/puppet/parser/scope.rb
+++ b/lib/puppet/parser/scope.rb
@@ -222,12 +222,12 @@ class Puppet::Parser::Scope
private :qualified_scope
- # Look up a variable. The simplest value search we do.
+ # Look up a variable. The simplest value search we do.
def lookupvar(name, options = {})
table = ephemeral?(name) ? @ephemeral.last : @symtable
# If the variable is qualified, then find the specified scope and look the variable up there instead.
if name =~ /^(.*)::(.+)$/
- begin
+ begin
qualified_scope($1).lookupvar($2,options)
rescue RuntimeError => e
location = (options[:file] && options[:line]) ? " at #{options[:file]}:#{options[:line]}" : ''
@@ -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