[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaConfig: do not render disabled objectst

git at icinga.org git at icinga.org
Wed Feb 17 19:59:36 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 35e083065868956ae33ee96c36b35640700ad429
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=35e083065868956ae33ee96c36b35640700ad429

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Feb 17 19:59:25 2016 +0100

IcingaConfig: do not render disabled objectst

---

 library/Director/IcingaConfig/IcingaConfig.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php
index aca1b9c..ce29ab3 100644
--- a/library/Director/IcingaConfig/IcingaConfig.php
+++ b/library/Director/IcingaConfig/IcingaConfig.php
@@ -406,6 +406,8 @@ throw $e;
         $file = null;
 
         foreach ($objects as $object) {
+            if ($object->disabled === 'y') continue;
+
             if ($object->isExternal()) {
                 if ($type === 'zone') {
                     $this->zoneMap[$object->id] = $object->object_name;



More information about the icinga-checkins mailing list