hiera-router 0.2.6 → 0.2.6.1
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 +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 035a3a42470085cce206ac0792c397cabc5731ed
|
4
|
+
data.tar.gz: e7164dcd4259a3135cdf8708ecfef9d10fe5275b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2775e852d4c4c80144a4d4fc086508a7d0f1f3955c4baf637ebc436d993531277486e5fc1812f1c9c36a09fc3d523c55983b90e86aeb135042baf6edd30c3f28
|
7
|
+
data.tar.gz: 793aad6e313f12d50fc5ec4f522543da4e7b510ad3d4372cb995917e0c4496f87615ef8926ad52898f4c0c8c7b3a91eddcc5ada661f0135052dbc9e5b2da7954
|
@@ -41,11 +41,15 @@ class Hiera
|
|
41
41
|
begin
|
42
42
|
YAML.load(cached_data)
|
43
43
|
rescue
|
44
|
-
|
45
|
-
{}
|
44
|
+
nil
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
48
|
+
if data.nil?
|
49
|
+
Hiera.debug("[hiera-router] something wrong with source #{source} '#{yaml_file}' -- returning an empty result")
|
50
|
+
next
|
51
|
+
end
|
52
|
+
|
49
53
|
next if data.empty?
|
50
54
|
next unless data.include?(key)
|
51
55
|
|
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.6
|
4
|
+
version: 0.2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jo Vandeginste
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |
|
15
15
|
This hiera backend replaces the default yaml backend, but will resend queries to other hiera backends based on the value returned by the yaml files.
|