IcingaHost: pass Config to zone lookup
This commit is contained in:
parent
1c79807500
commit
9eb9d65bef
|
@ -191,7 +191,7 @@ class IcingaHost extends IcingaObject
|
|||
'parent' => $this->connection->getMasterZoneName()
|
||||
), $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_zones')->addObject($zone);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue