mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Don't try to delete Downtime objects that were statically configured
fixes #13275
This commit is contained in:
parent
78fa197b9f
commit
56e9a23a65
@ -310,6 +310,9 @@ void Downtime::RemoveDowntime(const String& id, bool cancelled, bool expired, co
|
||||
Log(LogNotice, "Downtime")
|
||||
<< "Removed downtime '" << downtime->GetName() << "' from object '" << downtime->GetCheckable()->GetName() << "'.";
|
||||
|
||||
if (downtime->GetPackage() != "_api")
|
||||
return;
|
||||
|
||||
Array::Ptr errors = new Array();
|
||||
|
||||
if (!ConfigObjectUtility::DeleteObject(downtime, false, errors)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user