mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7817 from Icinga/bugfix/quality-apievents
ApiEvents: Fix AcknowledgementCleared code quality
This commit is contained in:
commit
77a0b8423d
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue