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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 500a298bd9861429eb29eae445bdaf02f1d8802bcd554e107e9f9c69c9d722f9
4
- data.tar.gz: cb1ea3ee1ad170544e32819e654916370fc7e80b8197c51fb5efd32877a257f0
3
+ metadata.gz: 2fefd0ba773d41bde8cf69e4527f513e54fa793f442d574bc612273297c02265
4
+ data.tar.gz: ef39ed3be791175d5bb1c97e5b0434933fa614687f59115e4063e408e046ccf4
5
5
  SHA512:
6
- metadata.gz: 3d3bfc2e5121fd39744099572fb25761842f9039c23e5229b275ae2ecb4179c3157b2367b6edb80b7e3e29606d724b6e1ee562aad8198ade75d5342cd8ffc23f
7
- data.tar.gz: 630c02f220ac15861caf3f34dbbc4a5721c96980dbc51bce5dd9bc7dfef93a4a6461640937bcb34cca9028a83220b3e4359fa0173371955f2b06e5ce8fe27295
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.key?(k) # to suppress unread configuration warning
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
- @cert = OpenSSL::X509::Certificate.new(File.read(@cert)) if @cert
90
- @key = OpenSSL::PKey.read(File.read(key)) if @key
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
- if !@key.is_a?(OpenSSL::PKey::RSA) && !@key.is_a?(OpenSSL::PKey::DSA)
93
- raise "Unsupported private key type #{key.class}"
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.1
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-05 00:00:00.000000000 Z
12
+ date: 2019-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler