From 9eb9d65bef1a134d0e75b6c318e80c13d927fe33 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 20 May 2016 08:51:57 +0200 Subject: [PATCH] IcingaHost: pass Config to zone lookup --- library/Director/Objects/IcingaHost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaHost.php b/library/Director/Objects/IcingaHost.php index 6a8f30c3..58414130 100644 --- a/library/Director/Objects/IcingaHost.php +++ b/library/Director/Objects/IcingaHost.php @@ -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); }