HostApplyMatches: do not skip defaults
May avoid errors when working with properties defined only on some of your hosts
This commit is contained in:
parent
8687ecaeeb
commit
241404d9ba
|
@ -74,7 +74,8 @@ class HostApplyMatches
|
||||||
if ($host->isTemplate()) {
|
if ($host->isTemplate()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$object = $host->toPlainObject(true);
|
|
||||||
|
$object = $host->toPlainObject(true, false);
|
||||||
static::flattenVars($object);
|
static::flattenVars($object);
|
||||||
$objects[$host->getObjectName()] = $object;
|
$objects[$host->getObjectName()] = $object;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue