HostApplyMatches: do not skip defaults

May avoid errors when working with properties defined only on some of your
hosts
This commit is contained in:
Thomas Gelf 2016-12-16 13:19:02 +01:00
parent 8687ecaeeb
commit 241404d9ba
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}