lib/hiera/backend/overrides_backend.rb in confidante-0.4.0 vs lib/hiera/backend/overrides_backend.rb in confidante-0.5.0

- old
+ new

@@ -10,15 +10,17 @@ def lookup(key, scope, order_override, resolution_type, context) Hiera.debug( "Looking up #{key} in overrides backend with #{resolution_type}") overrides = scope && scope['overrides'] + Hiera.debug("Found overrides: #{overrides}") throw(:no_such_key) unless overrides - Backend.parse_answer( - overrides[key.to_s] || throw(:no_such_key), - scope) + override = overrides[key.to_s] + Hiera.debug("Found override: #{override} for key: #{key}") + + Backend.parse_answer(override || throw(:no_such_key), scope) end end end end \ No newline at end of file