hiera-router 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiera/backend/router_backend.rb +1 -2
- 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: 78a2f6fd2dc0c7b4cae7b2190c13427ddd8bbc2e
|
4
|
+
data.tar.gz: 17271951c828120ab156144d805ea4fb15608c7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48788cc34fe57613edd485b29f9cc57a6e18c51d336a78fff5c546421079b5b6dae010be72d6a4b50879b64aa5f713aa86d4e181b0f821e2df7e28d352dca41d
|
7
|
+
data.tar.gz: 286720b3cc940bb523e1b5ea033ef8dea119c1698870270b069b2d90047ba97d8962557e2f64b497d63bafc210c74acb420786b28420c50bbd0a80efa5f3f447
|
@@ -25,7 +25,6 @@ class Hiera
|
|
25
25
|
@backends = {}
|
26
26
|
@cache_time = 60 # Cache all values for 1 minute
|
27
27
|
Hiera.debug("[hiera-router] I'm here!")
|
28
|
-
Config.config[:hierarchy] = Config.config[:router][:paths] if Config.config[:router][:paths]
|
29
28
|
self.config = Config.config
|
30
29
|
|
31
30
|
if backend_list = Config[:router][:backends]
|
@@ -104,7 +103,7 @@ class Hiera
|
|
104
103
|
when :array
|
105
104
|
raise Exception, "Hiera type mismatch: expected Array and got #{new_answer.class}" unless new_answer.kind_of? Array or new_answer.kind_of? String
|
106
105
|
answer ||= []
|
107
|
-
answer
|
106
|
+
answer << new_answer
|
108
107
|
when :hash
|
109
108
|
raise Exception, "Hiera type mismatch: expected Hash and got #{new_answer.class}" unless new_answer.kind_of? Hash
|
110
109
|
answer ||= {}
|