From e8c90ebb6be5668f4664da745109adebfe1fa406 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Dec 2015 13:50:48 +0100 Subject: [PATCH] IcingaObject: Fix that object IcingaHostGroup cannot be found in classByType() --- library/Director/Objects/IcingaObject.php | 5 +++++ 1 file changed, 5 insertions(+) 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); }