diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-19 14:50:56 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-19 14:50:56 +0100 |
commit | 8d209c0f6a1b3c47f9bc55b6f63cb14bfa935162 (patch) | |
tree | e7fc5b55868ce2a03ea14b504462ae83a024e8ec /lib/mauve/alert_changed.rb | |
parent | 638a0cb31b5dd3c0131035c19c14e0ac709a9a2e (diff) |
Don't remind about acknowledged or cleared alerts!
Diffstat (limited to 'lib/mauve/alert_changed.rb')
-rw-r--r-- | lib/mauve/alert_changed.rb | 5 |
1 files changed, 2 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 |