mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7685 from Icinga/bugfix/pending-checkable-problem
Checkable#GetProblem(): consider PENDING not a problem
This commit is contained in:
commit
bb9b70d466
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue