diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 3a58a24e..33827ade 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -894,6 +894,11 @@ return ''; $prefix = 'Director'; } + if ($type === 'hostgroup') { + // TODO: Provide a more sophisticated solution + $type = 'hostGroup'; + } + return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type); }