mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
CoreApi: no special treatment for imports
This commit is contained in:
parent
95cf3df0c2
commit
f3ce5fab21
@ -174,14 +174,6 @@ constants
|
|||||||
}
|
}
|
||||||
|
|
||||||
$objects[$name] = IcingaObject::createByType($type, $properties, $this->db);
|
$objects[$name] = IcingaObject::createByType($type, $properties, $this->db);
|
||||||
if (property_exists($attrs, 'templates')
|
|
||||||
&& count($attrs->templates) > 1
|
|
||||||
&& $objects[$name]->supportsImports()
|
|
||||||
) {
|
|
||||||
$imports = $attrs->templates;
|
|
||||||
array_shift($imports);
|
|
||||||
// TODO (prefetch?): $objects[$name]->imports = $imports;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $objects;
|
return $objects;
|
||||||
@ -237,6 +229,7 @@ constants
|
|||||||
'display_name' => 'display_name',
|
'display_name' => 'display_name',
|
||||||
'address' => 'address',
|
'address' => 'address',
|
||||||
'address6' => 'address6',
|
'address6' => 'address6',
|
||||||
|
'templates' => 'imports',
|
||||||
'groups' => 'groups',
|
'groups' => 'groups',
|
||||||
'vars' => 'vars',
|
'vars' => 'vars',
|
||||||
'check_command' => 'check_command',
|
'check_command' => 'check_command',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user