Set state to NODE_EMPTY in case of empty nodes

In case of empty nodes, the state is set to NODE_EMPTY now.
This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2020-02-27 11:36:30 +01:00 committed by Eric Lippmann
parent e533ff95f5
commit 7de814a4af

View file

@ -353,7 +353,7 @@ class BpNode extends Node
if (!$this->hasChildren()) {
// TODO: delegate this to operators, should mostly fail
$this->setState(self::ICINGA_UNKNOWN);
$this->setState(self::NODE_EMPTY);
$this->setMissing();
return $this;
}