diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/scope.rb | 2 | ||||
-rw-r--r-- | lib/puppet/util/logging.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index dba94407e..8de9d60b1 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.deprication_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} will not be supported in future versions. Use a fully-qualified variable name or parameterized classes." end table[name] elsif parent diff --git a/lib/puppet/util/logging.rb b/lib/puppet/util/logging.rb index b6845b8fa..36eb43cd2 100644 --- a/lib/puppet/util/logging.rb +++ b/lib/puppet/util/logging.rb @@ -15,15 +15,15 @@ module Puppet::Util::Logging end end - def deprication_warning(message) - $deprication_warnings ||= Hash.new(0) - if $deprication_warnings.length < 100 and ($deprication_warnings[message] += 1) == 1 + def deprecation_warning(message) + $deprecation_warnings ||= Hash.new(0) + if $deprecation_warnings.length < 100 and ($deprecation_warnings[message] += 1) == 1 warn message end end - def clear_deprication_warnings - $deprication_warnings.clear if $deprication_warnings + def clear_deprecation_warnings + $deprecation_warnings.clear if $deprecation_warnings end private |