IcingaEndpoint: fall back to name with no host

fixes #11315
This commit is contained in:
Thomas Gelf 2016-03-07 02:03:34 +01:00
parent 73eced1b11
commit 529eb13118

View File

@ -44,7 +44,7 @@ class IcingaEndpoint extends IcingaObject
public function api()
{
$client = new RestApiClient(
$this->getResolvedProperty('host'),
$this->getResolvedProperty('host', $this->object_name),
$this->getResolvedProperty('port')
);