Merge pull request #7817 from Icinga/bugfix/quality-apievents

ApiEvents: Fix AcknowledgementCleared code quality
This commit is contained in:
Michael Friedrich 2020-02-06 13:37:25 +01:00 committed by GitHub
commit 77a0b8423d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -245,13 +245,12 @@ void ApiEvents::AcknowledgementClearedHandler(const Checkable::Ptr& checkable, c
result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());
result->Set("acknowledgement_type", AcknowledgementNone);
for (const EventQueue::Ptr& queue : queues) {
queue->ProcessEvent(result);
}
result->Set("acknowledgement_type", AcknowledgementNone);
inboxes.Push(std::move(result));
}