hiera-mysql-json-backend 1.1.1 → 1.1.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf488a487e7f43f77fe5cc3e65b271357f8873a
|
4
|
+
data.tar.gz: 6f004a40633fb221a64b84e9386b3c1ddd60b56d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f13c4d437856a299310f2cfe73628c0ba36bcf641e391a1944f6191430608a9d38ee08bf753a1e200a86438f687bf832d6f84bc7245bdabed4c85b71781d5471
|
7
|
+
data.tar.gz: 9e9b07cd44462189aca7901898ba82ae12b3dcde7dc35d285baa4cf735d211d65bfb8f75c9073def41af8fc13dc114216f51814a54121923aed37b23d66c6d74
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "hiera-mysql-json-backend-jruby"
|
5
|
-
gem.version = "1.1.
|
5
|
+
gem.version = "1.1.2"
|
6
6
|
gem.authors = ["Hostnet"]
|
7
7
|
gem.email = ["opensource@hostnet.nl"]
|
8
8
|
gem.description = %q{Alternative MySQL backend with json support for hiera}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "hiera-mysql-json-backend"
|
5
|
-
gem.version = "1.1.
|
5
|
+
gem.version = "1.1.2"
|
6
6
|
gem.authors = ["Hostnet"]
|
7
7
|
gem.email = ["opensource@hostnet.nl"]
|
8
8
|
gem.description = %q{Alternative MySQL backend with json support for hiera}
|
@@ -90,7 +90,7 @@ class Hiera
|
|
90
90
|
begin
|
91
91
|
new_answer = JSON.parse(sql_results[0]['value'])
|
92
92
|
rescue
|
93
|
-
raise Exception, "JSON parse error for key '#{key}'." unless Config[:mysql_json][:ignore_json_parse_errors]
|
93
|
+
raise Exception, "JSON parse error for key '#{key}'. Offending data: #{sql_results[0]['value']}." unless Config[:mysql_json][:ignore_json_parse_errors]
|
94
94
|
Hiera.debug("Miserable failure while looking for #{key}.")
|
95
95
|
next
|
96
96
|
end
|
@@ -139,16 +139,11 @@ class Hiera
|
|
139
139
|
Hiera.debug("Mysql Query returned #{numcols} rows")
|
140
140
|
|
141
141
|
while res.next
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
else
|
146
|
-
row = {}
|
147
|
-
(1..numcols).each do |c|
|
148
|
-
row[md.getColumnName(c)] = res.getString(c)
|
149
|
-
end
|
150
|
-
data << row
|
142
|
+
row = {}
|
143
|
+
(1..numcols).each do |c|
|
144
|
+
row[md.getColumnName(c)] = res.getString(c)
|
151
145
|
end
|
146
|
+
data << row
|
152
147
|
end
|
153
148
|
|
154
149
|
else
|