hiera-router 0.2.5 → 0.2.6b
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 +10 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bb1b92e24cb469fbf0f3f3d648df2d5b431ba18
|
4
|
+
data.tar.gz: 2ab0141661a72bdf4503f6476deb86fad1b7906c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28bb5d37e2aa1492df14f90025ae5ac806dfa01b865273d7e3f66c4349f2ac8e06c6be35aea8c41d3bb3e023ed469899b225c47715a85ebc3ef0fff106b788b3
|
7
|
+
data.tar.gz: 4ebefb950ad6dcf4d5826921ed3ef8a44e794b8c8982e4cc41b15c449f0dc97679b2f197c97af030b0ef18ee843e5b89a4203a4d4868707accc243adc4c34a91
|
@@ -38,7 +38,16 @@ class Hiera
|
|
38
38
|
next unless File.exists?(yaml_file)
|
39
39
|
|
40
40
|
data = @cache.read(yaml_file, Hash) do |cached_data|
|
41
|
-
|
41
|
+
begin
|
42
|
+
YAML.load(cached_data)
|
43
|
+
rescue
|
44
|
+
nil
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if data.nil?
|
49
|
+
Hiera.debug("[hiera-router] something wrong with source #{source} '#{yaml_file}' -- returning an empty result")
|
50
|
+
next
|
42
51
|
end
|
43
52
|
|
44
53
|
next if data.empty?
|
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.
|
4
|
+
version: 0.2.6b
|
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
|
+
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.
|
@@ -38,12 +38,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - "
|
41
|
+
- - ">"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 1.3.1
|
44
44
|
requirements: []
|
45
45
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.
|
46
|
+
rubygems_version: 2.5.1
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: This hiera backend to selectively forward requests to different hiera backends
|