IcingaHost: agent-related hint for legacy config
This commit is contained in:
parent
89f86abdda
commit
38eaf4036b
|
@ -159,8 +159,13 @@ class IcingaHost extends IcingaObject
|
|||
public function renderToConfig(IcingaConfig $config)
|
||||
{
|
||||
parent::renderToConfig($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…
Reference in New Issue