sensu 1.1.2 → 1.1.3

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: d8dc54e2320f25a3096b084a2c156769551c5465
4
- data.tar.gz: ec408522b024b19bd6da5622ba3fe4af7ec13ad9
3
+ metadata.gz: 5716bcce7e37813806670e77b25c94e06dfa9c02
4
+ data.tar.gz: ad76c66cad53d2c722af68f0513e2a346adf7afb
5
5
  SHA512:
6
- metadata.gz: cb04f4d0f91884bf84fcda183e2c180071a0e795045d85bf26a8484ed50022df27605627b198aca816a03a1acd6519345cb871293c9eb21899dc5df2a8f189f5
7
- data.tar.gz: 9ebb69e2644dc74966c77f82f4d102199aba4400313c9c8437eb1a81eb9fe45dc5cf29018df3e1871c46655871f938a0c1fe982c8b618601c9f31fff823515d9
6
+ metadata.gz: e9cd95bde516a9fa44b29f107d5f8cd68c61c26a0f49981232af6f4916540221d558c3bf3dcfb49ae0d4c6ed5311f496168ed74b804c6453e6383a2c85d35191
7
+ data.tar.gz: 763abe545f122b8f0c624ab29c523d1723af31012605a19171fd57916effc1552b5089746b39f2398eddaedc91e718fdbda62a4a159d2e44af2bf8ce0dd9966c
@@ -1,3 +1,11 @@
1
+ ## 1.1.3 - 2017-11-24
2
+
3
+ ### Fixes
4
+
5
+ Fixed a bug in the Sensu client that broke check hooks named after numeric
6
+ statuses (e.g. `"2"`) and `"non-zero"`, they were never executed unless
7
+ the client had a local check definition. (#1773)
8
+
1
9
  ## 1.1.2 - 2017-10-27
2
10
 
3
11
  ### Fixes
@@ -131,9 +131,9 @@ module Sensu
131
131
  def execute_check_hook(check)
132
132
  @logger.debug("attempting to execute check hook", :check => check)
133
133
  severity = SEVERITIES[check[:status]] || "unknown"
134
- hook = check[:hooks][check[:status].to_s] || check[:hooks][severity.to_sym]
134
+ hook = check[:hooks][check[:status].to_s.to_sym] || check[:hooks][severity.to_sym]
135
135
  if hook.nil? && check[:status] != 0
136
- hook = check[:hooks]["non-zero"]
136
+ hook = check[:hooks]["non-zero".to_sym]
137
137
  end
138
138
  if hook
139
139
  command, unmatched_tokens = substitute_tokens(hook[:command].dup, @settings[:client])
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "1.1.2".freeze
4
+ VERSION = "1.1.3".freeze
5
5
 
6
6
  # Sensu release information.
7
7
  RELEASE_INFO = {
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: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-10-27 00:00:00.000000000 Z
12
+ date: 2017-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine