Merge pull request #9131 from Icinga/bugfix/dont-trigger-fixed-downtime-as-flexible

Don't trigger a fixed downtime like a flexible one
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-01-03 18:10:50 +01:00 committed by GitHub
commit eb0d1fc823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ void Downtime::Start(bool runtimeCreated)
* this downtime now *after* it has been added (important
* for DB IDO, etc.)
*/
if (!checkable->IsStateOK(checkable->GetStateRaw())) {
if (!GetFixed() && !checkable->IsStateOK(checkable->GetStateRaw())) {
Log(LogNotice, "Downtime")
<< "Checkable '" << checkable->GetName() << "' already in a NOT-OK state."
<< " Triggering downtime now.";