sensu 0.20.1 → 0.20.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
  SHA1:
3
- metadata.gz: 5b8129f2924dcf63c31a7bdb855cd40cb7493464
4
- data.tar.gz: 2a66a8334964bfcbfcb8f3f2638171236181ae5e
3
+ metadata.gz: 540fbe4cb2a3911f73843e77d4986c9dd90b92d6
4
+ data.tar.gz: eb5827d8b2d41073722166e1da5d6f3a6028be2c
5
5
  SHA512:
6
- metadata.gz: a3cfe4332c8324c4fda668fc6b2aa2d7145dda82f0733b21bb16341f74006861617833a2aa6fd9fd18958ae339cc0f479198573fc849790b4dce93c34083ff15
7
- data.tar.gz: 91601da033ce04b914df438c002d047cc16e868a4417cb2a3c16763d16646e860eee649e924a06b9c9dde1f8c43db9c2522ba106c3dc6ccf3398b4f28d0be01f
6
+ metadata.gz: 55b82945c73ea8689cc18ce34ba8c7cdb4c1ac9db752821afe012a7316af6fc5671850d79d94272f1d56ea9540cfcaf30f3073207aa47992ba6ddbcaeae93423
7
+ data.tar.gz: f96fbe0650b5f7b533ed1a1325ca8de822f61218556e4023a12dff404a238dd8c2662cbe2f1266206f6416eb39407dcb210cfc410dabfb5499c9b29b6c9ae563
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.20.2 - 2015-08-06
2
+
3
+ ### Other
4
+
5
+ The Sensu API `/clients` route/endpoint is now capable of handling missing
6
+ client data for a client in the registry.
7
+
8
+ Sensu configuration file loading will now properly follow a link once.
9
+
1
10
  ## 0.20.1 - 2015-07-27
2
11
 
3
12
  ### Other
@@ -334,7 +334,14 @@ module Sensu
334
334
  unless clients.empty?
335
335
  clients.each_with_index do |client_name, index|
336
336
  settings.redis.get("client:#{client_name}") do |client_json|
337
- response << MultiJson.load(client_json)
337
+ unless client_json.nil?
338
+ response << MultiJson.load(client_json)
339
+ else
340
+ settings.logger.error("client registry missing data for client", {
341
+ :client_name => client_name
342
+ })
343
+ settings.redis.srem("clients", client_name)
344
+ end
338
345
  if index == clients.size - 1
339
346
  body MultiJson.dump(response)
340
347
  end
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.20.1"
4
+ VERSION = "0.20.2"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
data/lib/sensu/daemon.rb CHANGED
@@ -4,7 +4,7 @@ gem "multi_json", "1.11.2"
4
4
 
5
5
  gem "sensu-em", "2.5.2"
6
6
  gem "sensu-logger", "1.0.0"
7
- gem "sensu-settings", "3.0.0"
7
+ gem "sensu-settings", "3.1.0"
8
8
  gem "sensu-extension", "1.1.2"
9
9
  gem "sensu-extensions", "1.2.0"
10
10
  gem "sensu-transport", "3.2.0"
data/sensu.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency "eventmachine", "1.0.3"
20
20
  s.add_dependency "sensu-em", "2.5.2"
21
21
  s.add_dependency "sensu-logger", "1.0.0"
22
- s.add_dependency "sensu-settings", "3.0.0"
22
+ s.add_dependency "sensu-settings", "3.1.0"
23
23
  s.add_dependency "sensu-extension", "1.1.2"
24
24
  s.add_dependency "sensu-extensions", "1.2.0"
25
25
  s.add_dependency "sensu-transport", "3.2.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-27 00:00:00.000000000 Z
12
+ date: 2015-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: 3.0.0
90
+ version: 3.1.0
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 3.0.0
97
+ version: 3.1.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: sensu-extension
100
100
  requirement: !ruby/object:Gem::Requirement