mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
KickstartHelper: remove 'imports' workarounds
This commit is contained in:
parent
898460a306
commit
e40c6d1f5e
@ -112,18 +112,10 @@ class KickstartHelper
|
||||
|
||||
foreach ($this->api()->setDb($db)->getZoneObjects() as $object) {
|
||||
if (! $object::exists($object->object_name, $db)) {
|
||||
$imports[$object->object_name] = $object->imports;
|
||||
$object->imports = array();
|
||||
$objects[$object->object_name] = $object;
|
||||
$object->store();
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($imports as $name => $imports) {
|
||||
$objects[$name]->imports = $imports;
|
||||
$objects[$name]->store();
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user