mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user