Module: Puppet::DataProviders::HieraInterpolate Deprecated Private

Includes:
Pops::Lookup::Interpolation
Defined in:
lib/puppet/data_providers/hiera_interpolate.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Deprecated.

Moved to Puppet::Pops::Lookup::Interpolation

Instance Method Summary collapse

Methods included from Pops::Lookup::Interpolation

#interpolate

Methods included from Pops::Lookup::SubLookup

#split_key, #sub_lookup

Instance Method Details

#qualified_lookup(segments, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Deprecated.

For backward compatibility



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/puppet/data_providers/hiera_interpolate.rb', line 8

def qualified_lookup(segments, value)
  if Puppet[:strict] != :off
    msg = 'Puppet::DataProviders::HieraInterpolate#qualified_lookup is deprecated, use Puppet::Pops::Lookup::SubLookup#sub_lookup'
    case Puppet[:strict]
    when :error
      raise Puppet::DataBinding::LookupError.new(msg)
    when :warning
      Puppet.warn_once(:deprecation, 'HieraInterpolate#qualified_lookup', msg)
    end
  end
  sub_lookup('<unknown key>', Puppet::Pops::Lookup::Invocation.new(nil), segments, value)
end