Skip to content

Commit 3d761c0

Browse files
committed
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.
1 parent 8714f72 commit 3d761c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/icinga/apiactions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ Dictionary::Ptr ApiActions::ScheduleDowntime(const ConfigObject::Ptr& object,
494494
<< "Scheduling downtime for child object " << child->GetName();
495495

496496
Downtime::Ptr childDowntime = Downtime::AddDowntime(child, author, comment, startTime, endTime,
497-
fixed, trigger, duration);
497+
fixed, trigger, duration, String(), String(), downtimeName);
498498
String childDowntimeName = childDowntime->GetName();
499499

500500
Log(LogNotice, "ApiActions")

0 commit comments

Comments
 (0)