Skip to content

Commit

Permalink
ApiActions: Remove child downtimes recursively
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yhabteab committed Feb 5, 2025
1 parent b4baf1c commit 56b6f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/apiactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 56b6f09

Please sign in to comment.