mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
parent
7ae1ed7798
commit
aeef51ffa6
@ -190,10 +190,14 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists('set_if', $attrs) && is_object($attrs['set_if'])) {
|
||||
if ($attrs['set_if']->type === 'Function') {
|
||||
if (array_key_exists('set_if', $attrs)) {
|
||||
if (is_object($attrs['set_if']) && $attrs['set_if']->type === 'Function') {
|
||||
$attrs['set_if'] = '/* Unable to fetch function body through API */';
|
||||
$attrs['set_if_format'] = 'expression';
|
||||
} elseif (property_exists($value, 'set_if_format')) {
|
||||
if (in_array($value->set_if_format, ['string', 'expression', 'json'])) {
|
||||
$attrs['set_if_format'] = $value->set_if_format;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user