mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
Db: enumIcingaObjects should also provide externals
This commit is contained in:
parent
b0f98c2d07
commit
be4bfbb37d
@ -311,7 +311,6 @@ class Db extends DbConnection
|
||||
public function enumCheckcommands()
|
||||
{
|
||||
$filters = array(
|
||||
'object_type IN (?)' => array('object', 'external_object'),
|
||||
'methods_execute IN (?)' => array('PluginCheck', 'IcingaCheck'),
|
||||
|
||||
);
|
||||
@ -424,7 +423,10 @@ class Db extends DbConnection
|
||||
|
||||
public function enumIcingaObjects($type, $filters = array())
|
||||
{
|
||||
$filters = array('object_type = ?' => 'object') + $filters;
|
||||
$filters = array(
|
||||
'object_type IN (?)' => array('object', 'external_object')
|
||||
) + $filters;
|
||||
|
||||
return $this->enum('icinga_' . $type, null, $filters);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user