From 068fc107d22a0438afb53a82e7dab680b721531c Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 21 Nov 2012 14:32:09 +0000 Subject: The notifier now saves the alert following notification. This should ensure that the cached group gets updated. --- lib/mauve/notifier.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mauve/notifier.rb b/lib/mauve/notifier.rb index 2e3ac89..67cd89b 100644 --- a/lib/mauve/notifier.rb +++ b/lib/mauve/notifier.rb @@ -36,10 +36,12 @@ module Mauve # This sends the notification for an alert # def notify(alert, at) + alert.reload if alert.alert_group.nil? logger.warn "Could not notify for #{alert} since there are no matching alert groups" else alert.alert_group.notify(alert, at) + alert.save if alert.is_a?(Alert) end end -- cgit v1.2.1