mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 23:34:10 +02:00
IcingaService: fix command endpoint when...
...assigned by template
This commit is contained in:
parent
1ca627f66c
commit
e803385673
@ -168,7 +168,11 @@ class IcingaService extends IcingaObject
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->renderRelationProperty('host', $this->host_id, 'command_endpoint');
|
||||
if ($this->hasBeenAssignedToHostTemplate()) {
|
||||
return c::renderKeyValue('command_endpoint', 'host.name');
|
||||
} else {
|
||||
return $this->renderRelationProperty('host', $this->host_id, 'command_endpoint');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user