mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
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.
This commit is contained in:
parent
8714f72d65
commit
3d761c0296
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user