Skip to content

Commit 56b6f09

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 b4baf1c commit 56b6f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/icinga/apiactions.cpp

Lines changed: 1 addition & 1 deletion
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)