mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +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()
|
public function enumCheckcommands()
|
||||||
{
|
{
|
||||||
$filters = array(
|
$filters = array(
|
||||||
'object_type IN (?)' => array('object', 'external_object'),
|
|
||||||
'methods_execute IN (?)' => array('PluginCheck', 'IcingaCheck'),
|
'methods_execute IN (?)' => array('PluginCheck', 'IcingaCheck'),
|
||||||
|
|
||||||
);
|
);
|
||||||
@ -424,7 +423,10 @@ class Db extends DbConnection
|
|||||||
|
|
||||||
public function enumIcingaObjects($type, $filters = array())
|
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);
|
return $this->enum('icinga_' . $type, null, $filters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user