[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: IcingaHost: pass Config to zone lookup

git at icinga.org git at icinga.org
Fri May 20 13:15:00 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: 9eb9d65bef1a134d0e75b6c318e80c13d927fe33
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=9eb9d65bef1a134d0e75b6c318e80c13d927fe33

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri May 20 08:51:57 2016 +0200

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 6a8f30c..5841413 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);
     }



More information about the icinga-checkins mailing list