hiera-router 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hiera/backend/router_backend.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450788524eaa4a8ef0cd23821820454a149906f5
|
4
|
+
data.tar.gz: 502dea3c28e8dc1a1d26a28fa310d562c8d568c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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."
|