diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/alert_changed.rb | 5 | ||||
-rw-r--r-- | lib/mauve/person.rb | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb index 5cd8b2c..83332ff 100644 --- a/lib/mauve/alert_changed.rb +++ b/lib/mauve/alert_changed.rb @@ -59,9 +59,8 @@ module Mauve return save end - - if alert.acknowledged? - logger.info("Alert already acknowledged. Clearing reminder due for #{self.alert}.") + if alert.acknowledged? or alert.cleared? + logger.info("Alert already acknowledged/cleared. Clearing reminder due for #{self.alert}.") self.remind_at = nil return save end diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index e52b644..26425da 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -102,6 +102,12 @@ module Mauve return false end + # + # For the love of God, do not remind about ack'd or cleared alerts. + # + if alert.acknowledged? or alert.cleared? + remind_at = nil + end this_reminder = AlertChanged.new( :level => level.to_s, |