mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaService: command endpoint respects use_agent
This commit is contained in:
parent
53c0f94f27
commit
01be02fe9c
@ -80,6 +80,15 @@ class IcingaService extends IcingaObject
|
||||
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
|
||||
}
|
||||
|
||||
public function renderCommand_endpoint_id()
|
||||
{
|
||||
if ($this->use_agent === 'y') {
|
||||
return $this->renderHost_id();
|
||||
}
|
||||
|
||||
return $this->renderRelationProperty('command_endpoint', $this->command_endpoint_id);
|
||||
}
|
||||
|
||||
public function renderUse_agent()
|
||||
{
|
||||
return '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user