IcingaObjectImports: keep passed objects in set()
This reduces lookups and avoids failures when unstored objects are involved
This commit is contained in:
parent
fbd1adba39
commit
73bdfb3ecd
|
@ -100,6 +100,7 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
|
|||
foreach ($import as $i) {
|
||||
|
||||
if ($i instanceof $class) {
|
||||
$this->objects[$i->object_name] = $i;
|
||||
$new[] = $i->object_name;
|
||||
} else {
|
||||
$new[] = $i;
|
||||
|
|
Loading…
Reference in New Issue