Merge pull request #8874 from Icinga/bugfix/fixed-dt-end-notify

Checkable::NotifyDowntimeEnd(): don't send Downtime end notification unless triggered
This commit is contained in:
Julian Brost 2021-07-07 10:43:28 +02:00 committed by GitHub
commit 6d6844c102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -256,8 +256,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();