fluent-plugin-grafana-loki 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/out_loki.rb +7 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fefd0ba773d41bde8cf69e4527f513e54fa793f442d574bc612273297c02265
|
4
|
+
data.tar.gz: ef39ed3be791175d5bb1c97e5b0434933fa614687f59115e4063e408e046ccf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaf0a82d67c688153ab01fc193070f8ed16bea0f871aaf51b77013764716da2dac496846d8180528fda8266316dd8e146ea8fff5694b753ee33232b8ac83afb6
|
7
|
+
data.tar.gz: 1c8469a80d7f36ac8feb144ff890e70330aa8529f1a38d267e4442b74bdb3d9fa0e8b93ca856d5b491bd52af85a530cbeb60565253dc74404af8617bc71f490b
|
@@ -76,7 +76,7 @@ module Fluent
|
|
76
76
|
@record_accessors = {}
|
77
77
|
conf.elements.select { |element| element.name == 'label' }.each do |element|
|
78
78
|
element.each_pair do |k, v|
|
79
|
-
element.
|
79
|
+
element.has_key?(k) # rubocop:disable Style/PreferredHashMethods #to suppress unread configuration warning
|
80
80
|
v = k if v.empty?
|
81
81
|
@record_accessors[k] = record_accessor_create(v)
|
82
82
|
end
|
@@ -86,11 +86,13 @@ module Fluent
|
|
86
86
|
@remove_keys_accessors.push(record_accessor_create(key))
|
87
87
|
end
|
88
88
|
|
89
|
-
|
90
|
-
|
89
|
+
if !@key.nil? && !@cert.nil?
|
90
|
+
@cert = OpenSSL::X509::Certificate.new(File.read(@cert)) if @cert
|
91
|
+
@key = OpenSSL::PKey.read(File.read(@key)) if @key
|
91
92
|
|
92
|
-
|
93
|
-
|
93
|
+
if !@key.is_a?(OpenSSL::PKey::RSA) && !@key.is_a?(OpenSSL::PKey::DSA)
|
94
|
+
raise "Unsupported private key type #{key.class}"
|
95
|
+
end
|
94
96
|
end
|
95
97
|
|
96
98
|
if !@ca_cert.nil? && !File.exist?(@ca_cert)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-grafana-loki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- woodsaj
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-11-
|
12
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|