IcingaService: command_endpoint fix for use_agent
This commit is contained in:
parent
129cc8220b
commit
ff5ebdab53
|
@ -80,13 +80,13 @@ class IcingaService extends IcingaObject
|
||||||
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
|
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderCommand_endpoint_id()
|
protected function renderCustomExtensions()
|
||||||
{
|
{
|
||||||
if ($this->use_agent === 'y') {
|
if ($this->command_endpoint_id !== null) return '';
|
||||||
return $this->renderHost_id();
|
if ($this->object_type !== 'object') return '';
|
||||||
}
|
if ($this->getResolvedProperty('use_agent') !== 'y') return '';
|
||||||
|
|
||||||
return $this->renderRelationProperty('command_endpoint', $this->command_endpoint_id);
|
return $this->renderRelationProperty('host', $this->host_id, 'command_endpoint');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderUse_agent()
|
public function renderUse_agent()
|
||||||
|
|
Loading…
Reference in New Issue