sensu 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/server.rb +2 -2
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/server.rb
CHANGED
@@ -216,10 +216,10 @@ module Sensu
|
|
216
216
|
handle = case event[:action]
|
217
217
|
when :resolve
|
218
218
|
event[:check][:history].reverse[1..-1].any? do |status|
|
219
|
-
if status == 0
|
219
|
+
if status.to_i == 0
|
220
220
|
break
|
221
221
|
end
|
222
|
-
severity = SEVERITIES[status] || 'unknown'
|
222
|
+
severity = SEVERITIES[status.to_i] || 'unknown'
|
223
223
|
handler[:severities].include?(severity)
|
224
224
|
end
|
225
225
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
9
|
+
- 5
|
10
|
+
version: 0.12.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sean Porter
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2014-01-
|
19
|
+
date: 2014-01-20 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|