mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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';
|
$prefix = 'Director';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Provide a more sophisticated solution
|
||||||
if ($type === 'hostgroup') {
|
if ($type === 'hostgroup') {
|
||||||
// TODO: Provide a more sophisticated solution
|
|
||||||
$type = 'hostGroup';
|
$type = 'hostGroup';
|
||||||
|
} elseif ($type === 'usergroup') {
|
||||||
|
$type = 'userGroup';
|
||||||
|
} elseif ($type === 'servicegroup') {
|
||||||
|
$type = 'serviceGroup';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);
|
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user