diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-12-19 12:42:44 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-12-19 12:42:44 +0000 |
commit | 17f2b9befcf4c8f16c77116eedf28a9ba61ca94d (patch) | |
tree | 0ba67db13e2309afca2722d69f339fe1d7959b4f | |
parent | f32acd731791b40cf1eba8ff0a0c255a3af565e3 (diff) |
Ensure that our notification periods are integersrelease-0.8-8
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | lib/custodian/alerts/mauve.rb | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index d7272b9..7c5cafc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +custodian (0.8-8) stable; urgency=low + + * Ensure that our notification periods are always integers. + + -- Steve Kemp <steve@bytemark.co.uk> Wed, 19 Dec 2012 12:44:21 +0000 + custodian (0.8-7) stable; urgency=low * New release to ensure that content-matches don't always fail. diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb index 7f06dfd..7fe28bc 100644 --- a/lib/custodian/alerts/mauve.rb +++ b/lib/custodian/alerts/mauve.rb @@ -96,14 +96,14 @@ module Custodian # # Lookup the start of the day. # - day_start = @settings.key( "day_start" ) || 10 - day_end = @settings.key( "day_end" ) || 18 + day_start = @settings.key( "day_start" ).to_i || 10 + day_end = @settings.key( "day_end" ).to_i || 18 # # In hour suppress # - working_suppress = @settings.key( "working_suppress" ) || 4 - oncall_suppress = @settings.key( "oncall_suppress" ) || 10 + working_suppress = @settings.key( "working_suppress" ).to_i || 4 + oncall_suppress = @settings.key( "oncall_suppress" ).to_i || 10 # # If we're Monday-Friday, between the start & end time, then |