mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-03 22:04:27 -04:00
parent
7ae1ed7798
commit
aeef51ffa6
1 changed files with 6 additions and 2 deletions
|
|
@ -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…
Reference in a new issue