mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
CoreApi: listObjects should return a list
This commit is contained in:
parent
f8d2843d2c
commit
66b1daa1ba
@ -60,12 +60,14 @@ class CoreApi
|
||||
{
|
||||
// TODO: more abstraction needed
|
||||
// TODO: autofetch and cache pluraltypes
|
||||
return $this->client->get(
|
||||
$result = $this->client->get(
|
||||
'objects/' . $pluralType,
|
||||
array(
|
||||
'attrs' => array($type . '.__name', $type . '.name'),
|
||||
'attrs' => array('__name')
|
||||
)
|
||||
)->getResult('name');
|
||||
|
||||
return array_keys($result);
|
||||
}
|
||||
|
||||
public function getModules()
|
||||
|
Loading…
x
Reference in New Issue
Block a user