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)
|
public function renderToConfig(IcingaConfig $config)
|
||||||
{
|
{
|
||||||
parent::renderToConfig($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)
|
public function renderAgentZoneAndEndpoint(IcingaConfig $config = null)
|
||||||
|
|
Loading…
Reference in New Issue