aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-29 21:00:21 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-29 21:00:21 +0000
commite93869d69001996c8819c82ec1fe02a790e6e279 (patch)
treeb08167453d34d5298f4dcdd2181090773cb8e578 /lib
parent4a2d26f044bf931994010a68f5b38338f585b159 (diff)
Raised time now set to unacknowledgment time when alerts become unacknowledged
Diffstat (limited to 'lib')
-rw-r--r--lib/mauve/alert.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index 8ccc045..6138664 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -412,6 +412,13 @@ module Mauve
#
# @return [Boolean] showing the unacknowledgment has been successful
def unacknowledge!
+ #
+ # Start the notification procedure again.
+ #
+ if self.was_acknowledged?
+ self.raised_at = Time.now
+ end
+
self.acknowledged_by = nil
self.acknowledged_at = nil
self.will_unacknowledge_at = nil