Skip to content

Commit

Permalink
Checkable::NotifyDowntimeEnd(): don't send Downtime end notification …
Browse files Browse the repository at this point in the history
…unless triggered

... for fixed Downtimes as well.
  • Loading branch information
Al2Klimov committed Jul 7, 2021
1 parent 2fd8e13 commit 0cca935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/icinga/checkable.cpp
Expand Up @@ -232,8 +232,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();
Expand Down

0 comments on commit 0cca935

Please sign in to comment.