fluent-plugin-chef-api 0.5.0 → 0.5.1

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: 15ef7ceb2205ce2e0669ab45ebcd0271db42d9d7
4
- data.tar.gz: 392ab1da22f56d0b2b5b49928568a1ce3b997490
3
+ metadata.gz: f0ec63562f649c34c1192372ba89e946190dd94d
4
+ data.tar.gz: 1791e941960d83e262b538ef9a5b1db4cff9506a
5
5
  SHA512:
6
- metadata.gz: a2a389686b0cca8d1d393cf17969607b07247d9a2c6de76d8252a803b2c588eeaf59fdaf34057627a6a27e6abf7baf527e1bdec1ce77dd2d992c6d615f221f70
7
- data.tar.gz: f3fa4382f1fd36c2ca39c596eee76ee45032791d63fdc8759a3c6d84af88230c4652e4575f9d797b7a1a8505665570e8e26302b1fafc3e9e054173178bd5b1f9
6
+ metadata.gz: 78b43e19595dd67509942094d1e52af0c39815c25d979921968748f5722014154b085592fd25266dcd99884a706f76400ebb7fff8e77023ce7a8319f768838f8
7
+ data.tar.gz: e88d95406f913a9f4541fa4f31468fcb071a7beda38f4cd92c250641ed95b4a5f67bd74dd1b9134ad801de3529463fbd2e5828350cb79f7e46a1836c34cd6dad
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-chef-api"
7
- spec.version = "0.5.0"
7
+ spec.version = "0.5.1"
8
8
  spec.authors = ["Yamashita Yuu"]
9
9
  spec.email = ["peek824545201@gmail.com"]
10
10
  spec.license = "Apache-2.0"
@@ -88,7 +88,7 @@ module Fluent
88
88
  if @monitor_multi
89
89
  run_once(connection)
90
90
  else
91
- run_once_single(connnection)
91
+ run_once_single(connection)
92
92
  end
93
93
  rescue => error
94
94
  $log.warn("failed to fetch metrics: #{error.class}: #{error.message}")
@@ -102,8 +102,9 @@ module Fluent
102
102
 
103
103
  def run_once_single(connection)
104
104
  data = @default_values.dup
105
- node = connection.nodes.fetch(@node_name)
106
- emit_node_metrics(node, data)
105
+ if node = connection.nodes.fetch(connection.client)
106
+ emit_node_metrics(node, data)
107
+ end
107
108
  end
108
109
 
109
110
  def run_once(connection)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-chef-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamashita Yuu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler