# File lib/hiera_puppet.rb, line 8 def lookup(key, default, scope, override, resolution_type) unless scope.respond_to?("[]") scope = Hiera::Scope.new(scope) end answer = hiera.lookup(key, default, scope, override, resolution_type) if answer.nil? raise(Puppet::ParseError, "Could not find data item #{key} in any Hiera data file and no default supplied") end answer end