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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cebbd7f08d8c22d458a5da0fa9b68990db6b4ee
4
- data.tar.gz: 1d35150e1b5a54f482c23f9609a37c996ed4ad72
3
+ metadata.gz: 78a2f6fd2dc0c7b4cae7b2190c13427ddd8bbc2e
4
+ data.tar.gz: 17271951c828120ab156144d805ea4fb15608c7e
5
5
  SHA512:
6
- metadata.gz: 81015d9fc5c54676fd6f1bc682a73b5f9d0b224d48a204c1aa82c17c59702dfb68414c1869d6bf4d90bcce3808f76a1f82a5d3f18ec848fcec2ec02533eef2b2
7
- data.tar.gz: '0940eadcec9949bb8f22b1c52e4cd03a19c5fccf7129870d9a3da570cdb202abe2e7f34cb31505ec62264f166c46a4dd4f0bb6322b257170cd77e01dd600ff55'
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 = answer | new_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 ||= {}
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste