mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 10:17:59 +02:00
Merge pull request #9349 from Icinga/bugfix/downtime-args
Fix mixed up arguments for AddDowntime/RemoveDowntime in 2.12.x
This commit is contained in:
commit
06a909803a
@ -457,7 +457,7 @@ Dictionary::Ptr ApiActions::ScheduleDowntime(const ConfigObject::Ptr& object,
|
|||||||
<< "Creating downtime for service " << childService->GetName() << " on child host " << childHost->GetName();
|
<< "Creating downtime for service " << childService->GetName() << " on child host " << childHost->GetName();
|
||||||
|
|
||||||
Downtime::Ptr serviceDowntime = Downtime::AddDowntime(childService, author, comment, startTime, endTime,
|
Downtime::Ptr serviceDowntime = Downtime::AddDowntime(childService, author, comment, startTime, endTime,
|
||||||
fixed, triggerName, duration, String(), String(), childDowntimeName);
|
fixed, triggerName, duration);
|
||||||
String serviceDowntimeName = serviceDowntime->GetName();
|
String serviceDowntimeName = serviceDowntime->GetName();
|
||||||
|
|
||||||
childServiceDowntimes.push_back(new Dictionary({
|
childServiceDowntimes.push_back(new Dictionary({
|
||||||
|
@ -323,7 +323,7 @@ void ScheduledDowntime::RemoveObsoleteDowntimes()
|
|||||||
auto configOwnerHash (downtime->GetConfigOwnerHash());
|
auto configOwnerHash (downtime->GetConfigOwnerHash());
|
||||||
|
|
||||||
if (!configOwnerHash.IsEmpty() && configOwnerHash != downtimeOptionsHash)
|
if (!configOwnerHash.IsEmpty() && configOwnerHash != downtimeOptionsHash)
|
||||||
Downtime::RemoveDowntime(downtime->GetName(), false, true);
|
Downtime::RemoveDowntime(downtime->GetName(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user