[icinga-checkins] icinga.org: icinga2/master: Fix that reminder notifications ignore HA mode

git at icinga.org git at icinga.org
Thu Jul 28 17:40:29 CEST 2016


Module: icinga2
Branch: master
Commit: 077dbe1db6b137dbb91f41b4049a41b73a39a002
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=077dbe1db6b137dbb91f41b4049a41b73a39a002

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Jul 28 17:39:52 2016 +0200

Fix that reminder notifications ignore HA mode

fixes #12249

---

 lib/notification/notificationcomponent.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/notification/notificationcomponent.cpp b/lib/notification/notificationcomponent.cpp
index aafa281..20cfa01 100644
--- a/lib/notification/notificationcomponent.cpp
+++ b/lib/notification/notificationcomponent.cpp
@@ -75,11 +75,11 @@ void NotificationComponent::NotificationTimerHandler(void)
 		if (!notification->IsActive())
 			continue;
 
-		Checkable::Ptr checkable = notification->GetCheckable();
-
-		if (checkable->IsPaused() && GetEnableHA())
+		if (notification->IsPaused() && GetEnableHA())
 			continue;
 
+		Checkable::Ptr checkable = notification->GetCheckable();
+
 		if (!IcingaApplication::GetInstance()->GetEnableNotifications() || !checkable->GetEnableNotifications())
 			continue;
 



More information about the icinga-checkins mailing list