IcingaObject: a few more hardcoded class names
This commit is contained in:
parent
d0359683cd
commit
75bbf9c7da
|
@ -931,9 +931,13 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
$prefix = 'Director';
|
||||
}
|
||||
|
||||
// TODO: Provide a more sophisticated solution
|
||||
if ($type === 'hostgroup') {
|
||||
// TODO: Provide a more sophisticated solution
|
||||
$type = 'hostGroup';
|
||||
} elseif ($type === 'usergroup') {
|
||||
$type = 'userGroup';
|
||||
} elseif ($type === 'servicegroup') {
|
||||
$type = 'serviceGroup';
|
||||
}
|
||||
|
||||
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);
|
||||
|
|
Loading…
Reference in New Issue