mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #8878 from Icinga/bugfix/fixed-dt-end-notify-211
Checkable::NotifyDowntimeEnd(): don't send Downtime end notification unless triggered
This commit is contained in:
commit
7c4996d1c2
@ -194,8 +194,8 @@ void Checkable::NotifyDowntimeInternal(const Downtime::Ptr& downtime)
|
||||
|
||||
void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
|
||||
{
|
||||
/* don't send notifications for flexible downtimes which never triggered */
|
||||
if (!downtime->GetFixed() && !downtime->IsTriggered())
|
||||
/* don't send notifications for downtimes which never triggered */
|
||||
if (!downtime->IsTriggered())
|
||||
return;
|
||||
|
||||
Checkable::Ptr checkable = downtime->GetCheckable();
|
||||
|
Loading…
x
Reference in New Issue
Block a user