From 241404d9baed6436d6fcd2930fb88bbd34c8b1f7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 16 Dec 2016 13:19:02 +0100 Subject: [PATCH] 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 e3e860a0..07df56b0 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; }