Merge pull request #7685 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
1 changed files with 3 additions and 1 deletions

View File

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