1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Merge pull request from Icinga/bugfix/pending-checkable-problem

Checkable#GetProblem(): consider PENDING not a problem
This commit is contained in:
Alexander Aleksandrovič Klimov 2019-12-03 17:27:01 +01:00 committed by GitHub
commit bb9b70d466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,7 +160,9 @@ int Checkable::GetSeverity() const
bool Checkable::GetProblem() const
{
return !IsStateOK(GetStateRaw());
auto cr (GetLastCheckResult());
return cr && !IsStateOK(cr->GetState());
}
bool Checkable::GetHandled() const