diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 37f9d8b41..d0ce6d29f 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -457,7 +457,7 @@ Dictionary::Ptr ApiActions::ScheduleDowntime(const ConfigObject::Ptr& object, << "Creating downtime for service " << childService->GetName() << " on child host " << childHost->GetName(); Downtime::Ptr serviceDowntime = Downtime::AddDowntime(childService, author, comment, startTime, endTime, - fixed, triggerName, duration, String(), String(), childDowntimeName); + fixed, triggerName, duration); String serviceDowntimeName = serviceDowntime->GetName(); childServiceDowntimes.push_back(new Dictionary({ diff --git a/lib/icinga/scheduleddowntime.cpp b/lib/icinga/scheduleddowntime.cpp index f01f03bdd..9cd0004f2 100644 --- a/lib/icinga/scheduleddowntime.cpp +++ b/lib/icinga/scheduleddowntime.cpp @@ -323,7 +323,7 @@ void ScheduledDowntime::RemoveObsoleteDowntimes() auto configOwnerHash (downtime->GetConfigOwnerHash()); if (!configOwnerHash.IsEmpty() && configOwnerHash != downtimeOptionsHash) - Downtime::RemoveDowntime(downtime->GetName(), false, true); + Downtime::RemoveDowntime(downtime->GetName(), true); } } }