mirror of https://github.com/Icinga/icinga2.git
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:
commit
6d6844c102
|
@ -256,8 +256,8 @@ void Checkable::NotifyDowntimeInternal(const Downtime::Ptr& downtime)
|
||||||
|
|
||||||
void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
|
void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
|
||||||
{
|
{
|
||||||
/* don't send notifications for flexible downtimes which never triggered */
|
/* don't send notifications for downtimes which never triggered */
|
||||||
if (!downtime->GetFixed() && !downtime->IsTriggered())
|
if (!downtime->IsTriggered())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Checkable::Ptr checkable = downtime->GetCheckable();
|
Checkable::Ptr checkable = downtime->GetCheckable();
|
||||||
|
|
Loading…
Reference in New Issue