mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaObject: Fix that object IcingaHostGroup cannot be found in classByType()
This commit is contained in:
parent
eec9710727
commit
e8c90ebb6b
@ -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…
x
Reference in New Issue
Block a user