sensu-plugins-consul 1.4.0 → 1.4.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: f48a4e2a7f877e1ff1d36c560af2c6c672115508
4
- data.tar.gz: 22a6edf01988e00527ca92efb884e798c659fdae
3
+ metadata.gz: 8c684c8753b72679288f5c017f6579c90e8d31df
4
+ data.tar.gz: e207203ce031933276ee65fb76a4f185346bf80c
5
5
  SHA512:
6
- metadata.gz: e07791c312aee3b4261354e5ec29cd62f765c75b55f9c97518bd4556e2dbd54f24c6b338f92e9b6e29d878cd33764d85d17bffa7d508c15e8883d6355bbd373f
7
- data.tar.gz: 5f3d40cbfd0095c2c1f43bbb6278f555cc72573d3fd32a12c0658de51c1edebce1151bcaba530f9785ea744d15823af52dd97776f4e612b5336706ce0947a6eb
6
+ metadata.gz: a0625d30e343c886468256e34ecd8f645e2ed277dc40ff5bc5908feed1dd90ebd2edd58d2f6afa23b673b88d70a0b4ef78fdc3cc473587749ea923d3e94d305c
7
+ data.tar.gz: 6896136924d366fcce09be182893e172995a31bc974864217217bd8c507467db4f14d3c73dfe6c2788bcb941e042cc45c88fde1dae74f1d97589725c4aa32fac
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.4.1] 2017-08-06
9
+ ### Fixed
10
+ - Bug fix for `check-consul-service-health` [#26](https://github.com/sensu-plugins/sensu-plugins-consul/pull/26) (@psyhomb)
11
+
12
+ ### Added
13
+ - ruby 2.4.1 testing (@majormoses)
14
+
8
15
  ## [1.4.0] 2017-08-05
9
16
  ### Added
10
17
  - `check-consul-service-health` now accept a `--node` argument that will check all autodiscovered consul services running on the specified node (@psyhomb)
@@ -80,7 +87,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
80
87
  ### Added
81
88
  - initial release
82
89
 
83
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.3.0...HEAD
90
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.4.1...HEAD
91
+ [1.4.1]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.4.0...1.4.1
84
92
  [1.4.0]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.3.0...1.4.0
85
93
  [1.3.0]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/2.1.0...1.3.0
86
94
  [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.1.0...1.2.0
@@ -82,12 +82,12 @@ class CheckConsulServiceHealth < Sensu::Plugin::Check::CLI
82
82
  elsif config[:nodename]
83
83
  data = []
84
84
  begin
85
- services = Diplomat::Node.get(config[:nodename]).Services.keys
85
+ services = Diplomat::Node.get(config[:nodename]).Services
86
86
  rescue
87
- services = []
87
+ services = {}
88
88
  end
89
- services.each do |service|
90
- Diplomat::Health.checks(service).each do |check|
89
+ services.values.each do |service|
90
+ Diplomat::Health.checks(service['Service']).each do |check|
91
91
  data.push(check) if check.Node == config[:nodename]
92
92
  end
93
93
  end
@@ -2,7 +2,7 @@ module SensuPluginsConsul
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 4
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-05 00:00:00.000000000 Z
11
+ date: 2017-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin