IcingaHost: pass Config to zone lookup

This commit is contained in:
Thomas Gelf 2016-05-20 08:51:57 +02:00
parent 1c79807500
commit 9eb9d65bef
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class IcingaHost extends IcingaObject
'parent' => $this->connection->getMasterZoneName() 'parent' => $this->connection->getMasterZoneName()
), $this->connection)->setEndpointList(array($name)); ), $this->connection)->setEndpointList(array($name));
$pre = 'zones.d/' . $this->getRenderingZone() . '/'; $pre = 'zones.d/' . $this->getRenderingZone($config) . '/';
$config->configFile($pre . 'agent_endpoints')->addObject($endpoint); $config->configFile($pre . 'agent_endpoints')->addObject($endpoint);
$config->configFile($pre . 'agent_zones')->addObject($zone); $config->configFile($pre . 'agent_zones')->addObject($zone);
} }