ServiceNode: getAlias() returns null if host or service alias is null

This commit is contained in:
Sukhwinder Dhillon 2022-10-04 10:23:55 +02:00 committed by Johannes Meyer
parent cbb6b018da
commit 5b4056e1b2

View file

@ -65,6 +65,10 @@ class ServiceNode extends MonitoredNode
public function getAlias()
{
if ($this->getHostAlias() === null || $this->alias === null) {
return null;
}
return $this->getHostAlias() . ': ' . $this->alias;
}