IcingaObject: Fix that object IcingaHostGroup cannot be found in classByType()
This commit is contained in:
parent
eec9710727
commit
e8c90ebb6b
library/Director/Objects
|
@ -894,6 +894,11 @@ return '';
|
||||||
$prefix = 'Director';
|
$prefix = 'Director';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($type === 'hostgroup') {
|
||||||
|
// TODO: Provide a more sophisticated solution
|
||||||
|
$type = 'hostGroup';
|
||||||
|
}
|
||||||
|
|
||||||
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);
|
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue