IcingaObject: allow to load Choices by type

fixes #1129
This commit is contained in:
Thomas Gelf 2017-09-12 15:51:33 +02:00
parent 77290c3bf3
commit f7353b6628
1 changed files with 4 additions and 0 deletions

View File

@ -2279,6 +2279,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
$type = 'serviceSet';
} elseif ($type === 'apiuser') {
$type = 'apiUser';
} elseif ($type === 'host_template_choice') {
$type = 'templateChoiceHost';
} elseif ($type === 'service_template_choice') {
$type = 'TemplateChoiceService';
}
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);