diff options
Diffstat (limited to 'code/environments/production/modules/stdlib/lib/puppet/parser/functions/dig.rb')
-rw-r--r-- | code/environments/production/modules/stdlib/lib/puppet/parser/functions/dig.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/code/environments/production/modules/stdlib/lib/puppet/parser/functions/dig.rb b/code/environments/production/modules/stdlib/lib/puppet/parser/functions/dig.rb new file mode 100644 index 0000000..75e83aa --- /dev/null +++ b/code/environments/production/modules/stdlib/lib/puppet/parser/functions/dig.rb @@ -0,0 +1,15 @@ +# +# dig.rb +# +module Puppet::Parser::Functions + newfunction(:dig, :type => :rvalue, :doc => <<-DOC + DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version. + DOC + ) do |arguments| + warning('dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.') + unless Puppet::Parser::Functions.autoloader.loaded?(:dig44) + Puppet::Parser::Functions.autoloader.load(:dig44) + end + function_dig44(arguments) + end +end |