From 1324be9f77606fc74bab77afb1356f4fca3fe2c1 Mon Sep 17 00:00:00 2001 From: Sophie Matthews Date: Mon, 31 Oct 2022 11:14:29 -0700 Subject: [PATCH] Remove hiera_or_lookup function entirely --- .../parser/functions/hiera_or_lookup.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 lib/puppet/parser/functions/hiera_or_lookup.rb diff --git a/lib/puppet/parser/functions/hiera_or_lookup.rb b/lib/puppet/parser/functions/hiera_or_lookup.rb deleted file mode 100644 index 7de483704..000000000 --- a/lib/puppet/parser/functions/hiera_or_lookup.rb +++ /dev/null @@ -1,19 +0,0 @@ -module Puppet::Parser::Functions - newfunction(:hiera_or_lookup, :type => :rvalue) do |args| - if Puppet.version =~ /^3/ - function_hiera(args) - elsif Puppet.version =~ /^4/ - args_4x = case args.count - when 1 - args - when 2 - [args.first, {'default_value' => args.last}] - when 3 - [args[0], {'default_value' => args[1]}] - else - fail("don't understand hiera_or_lookup arguments: #{args.inspect}") - end - call_function('lookup', args_4x) - end - end # end function -end # end module