mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 13:54:27 +02:00
IcingaHost: agent-related hint for legacy config
This commit is contained in:
parent
89f86abdda
commit
38eaf4036b
@ -159,7 +159,12 @@ class IcingaHost extends IcingaObject
|
||||
public function renderToConfig(IcingaConfig $config)
|
||||
{
|
||||
parent::renderToConfig($config);
|
||||
$this->renderAgentZoneAndEndpoint($config);
|
||||
|
||||
// TODO: We might alternatively let the whole config fail in case we have
|
||||
// used use_agent together with a legacy config
|
||||
if (! $config->isLegacy()) {
|
||||
$this->renderAgentZoneAndEndpoint($config);
|
||||
}
|
||||
}
|
||||
|
||||
public function renderAgentZoneAndEndpoint(IcingaConfig $config = null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user