IcingaObjectImports: keep passed objects in set()

This reduces lookups and avoids failures when unstored objects are
involved
This commit is contained in:
Thomas Gelf 2016-08-23 14:08:51 +00:00
parent fbd1adba39
commit 73bdfb3ecd
1 changed files with 1 additions and 0 deletions

View File

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