hiera-router 0.2.1 → 0.2.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: db3b791b3292b848979608328b58dfc7dd60b136
4
- data.tar.gz: 564e4ed4c0b8fb62fedf0be30e08ab73c6c083ad
3
+ metadata.gz: 8fafaff4f4c799dd687359d49d2ff3b945ce5a38
4
+ data.tar.gz: f4dcb3f54d9f9c41664d4aea1e96daa5c5a2d00f
5
5
  SHA512:
6
- metadata.gz: 0acd0d7e6cb93b8731c19c43b0360d32f686ec9f2772ed9987e04608da18c089bfe5edcc030ab13a4f6be5f8702c8c4df053ed4f777118dc51811bfdee0c223a
7
- data.tar.gz: 70069df8815d3435ac3b043174c7feee02ba39b6efadc0d319471af6a6165b6e05bcc32e945682cd564be8c44221706f7c31d59954a40f50cff7e5e2f6b6d64f
6
+ metadata.gz: ccb322433f7dc7ba2afaa8c799b0a3fb6c684c557f645e5e75e2e916257eb9314f8888f1da8e0ee7d9636b87048589c7abea9c411295c0342009d38074d74494
7
+ data.tar.gz: 8513e838ae89fd2a1313ad077f0c7a797680b6909644f0acd95ec5be77ba666abd4467d078ec72fb6dfff5a03849b95fd7d9b61ad336ad35542d85e8e1c026d1
@@ -99,8 +99,7 @@ class Hiera
99
99
  if backend = backends[backend_name]
100
100
  result = backend.lookup(backend_options[:key], backend_options[:scope], nil, backend_options[:resolution_type])
101
101
  else
102
- Hiera.warn "Backend '#{backend_name}' was not configured; returning the data as-is."
103
- result = data
102
+ raise "Backend '#{backend_name}' was not configured"
104
103
  end
105
104
  Hiera.debug("[hiera-router] Call to '#{backend_name}' finished.")
106
105
  return result
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste