From 3d761c029696b5b5dd28682cce27e470b1970909 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 5 Feb 2025 13:45:16 +0100 Subject: [PATCH] ApiActions: Remove child downtimes recursively Services downtimes scheduled via the `all_services` flag get already removed automatically when removing their parent downtimes (introduced with #8913). Now, this commit makes it possible to perform the same actions for all child downtimes, i.e. not only for those of service objects, but for all child objects represented in the dependency tree. --- lib/icinga/apiactions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 6e9fddd4d..3892de776 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -494,7 +494,7 @@ Dictionary::Ptr ApiActions::ScheduleDowntime(const ConfigObject::Ptr& object, << "Scheduling downtime for child object " << child->GetName(); Downtime::Ptr childDowntime = Downtime::AddDowntime(child, author, comment, startTime, endTime, - fixed, trigger, duration); + fixed, trigger, duration, String(), String(), downtimeName); String childDowntimeName = childDowntime->GetName(); Log(LogNotice, "ApiActions")