ImportSourceCoreApi: allow to import user groups

fixes #11511
This commit is contained in:
Thomas Gelf 2016-08-24 14:15:40 +00:00
parent cb59c61d66
commit b8b047a1e4
2 changed files with 9 additions and 1 deletions

View File

@ -417,6 +417,13 @@ constants
));
}
public function getUserGroupObjects()
{
return $this->getDirectorObjects('UserGroup', 'UserGroup', 'usergroups', array(
'display_name' => 'display_name',
));
}
public function getCheckCommandObjects()
{
IcingaCommand::setPluginDir($this->getConstant('PluginDir'));

View File

@ -62,6 +62,7 @@ class ImportSourceCoreApi extends ImportSourceHook
'Host' => $form->translate('Hosts'),
'HostGroup' => $form->translate('Hostgroups'),
'User' => $form->translate('Users'),
'UserGroup' => $form->translate('Usergroups'),
'Zone' => $form->translate('Zones'),
);