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