hiera-router 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c1282482f98f621d5067235b346e29c4a84fc25
4
- data.tar.gz: 2742960025c07fae932a51685766bc537e414379
3
+ metadata.gz: 450788524eaa4a8ef0cd23821820454a149906f5
4
+ data.tar.gz: 502dea3c28e8dc1a1d26a28fa310d562c8d568c9
5
5
  SHA512:
6
- metadata.gz: 0372151a457da7e900750a46af089bef93f4b4e5c8ebeb16f5ebc210fa8d306943fcaa73b5f1a48c75ac3dee122d06472638809c5fee2047467cc2c13f4ec22b
7
- data.tar.gz: 03fd9b8915f7b17bca4cdf813af6df6d92a5935812ec328c8d528c99d185ed6ce04a41e7c1181f6cfda134b0a5adfb3218a22a773b6c8725eecd6d47d6eaa7a9
6
+ metadata.gz: 6230515654ccda3f46f63cc26c300c1a15688816a17ce787f838ac0463344f0b0fbd97f987e3548a4a6ebf24b0df9ebc93dc51649a68988a05ac89cf804d0ec2
7
+ data.tar.gz: f994cfea4c2ff6db12dd6b290cd0ba65a2b7c81a138843d675b8cec420eb54eab4e16e51ed418318fb137c9a0af66c236d76cd5a0a4def25f535de2e75838c94
@@ -167,9 +167,10 @@ class Hiera
167
167
  Hiera.debug("[hiera-router] Calling hiera with '#{backend_name}'...")
168
168
  if backend = self.backends[backend_name.to_sym]
169
169
  backend_instance = backend[:instance]
170
+ key = Util.split_key(backend_options[:key]).first
170
171
  Hiera.debug("[hiera-router] Backend class: #{backend_instance.class.name}")
171
172
  Config.load(backend[:config])
172
- result = backend_instance.lookup(backend_options[:key], backend_options[:scope], nil, backend_options[:resolution_type])
173
+ result = backend_instance.lookup(key, backend_options[:scope], nil, backend_options[:resolution_type])
173
174
  Config.load(self.config)
174
175
  else
175
176
  Hiera.warn "Backend '#{backend_name}' was not configured; returning the data as-is."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste