[icinga-checkins] icinga.org: icingaweb2-module-director/master: HostApplyMatches: do not skip defaults

git at icinga.org git at icinga.org
Fri Dec 16 13:19:46 CET 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Dec 16 13:19:02 2016 +0100

HostApplyMatches: do not skip defaults

May avoid errors when working with properties defined only on some of your
hosts

---

 library/Director/Objects/HostApplyMatches.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/library/Director/Objects/HostApplyMatches.php b/library/Director/Objects/HostApplyMatches.php
index e3e860a..07df56b 100644
--- a/library/Director/Objects/HostApplyMatches.php
+++ b/library/Director/Objects/HostApplyMatches.php
@@ -74,7 +74,8 @@ class HostApplyMatches
             if ($host->isTemplate()) {
                 continue;
             }
-            $object = $host->toPlainObject(true);
+
+            $object = $host->toPlainObject(true, false);
             static::flattenVars($object);
             $objects[$host->getObjectName()] = $object;
         }



More information about the icinga-checkins mailing list