CoreApi: no special treatment for imports

This commit is contained in:
Thomas Gelf 2016-03-07 02:09:54 +01:00
parent 95cf3df0c2
commit f3ce5fab21
1 changed files with 1 additions and 8 deletions

View File

@ -174,14 +174,6 @@ constants
}
$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;
@ -237,6 +229,7 @@ constants
'display_name' => 'display_name',
'address' => 'address',
'address6' => 'address6',
'templates' => 'imports',
'groups' => 'groups',
'vars' => 'vars',
'check_command' => 'check_command',