mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-02 19:34:28 +02:00
parent
9d97094390
commit
48fa1a1418
@ -475,6 +475,11 @@ void DbEvents::AddDowntimes(const Checkable::Ptr& checkable)
|
||||
|
||||
void DbEvents::AddDowntime(const Checkable::Ptr& checkable, const Downtime::Ptr& downtime)
|
||||
{
|
||||
/*
|
||||
* make sure to delete any old downtime to avoid multiple inserts from
|
||||
* configured ScheduledDowntime dumps and CreateNextDowntime() calls
|
||||
*/
|
||||
RemoveDowntime(checkable, downtime);
|
||||
AddDowntimeInternal(checkable, downtime, false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user