diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 8c09fded..4185e40a 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -110,6 +110,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer $this->imports()->set($value); return $this; + } elseif ($key === 'arguments') { + if (is_object($value)) { + foreach ($value as $arg => $val) { + $this->arguments()->set($arg, $val); + } + } + return $this; + } elseif ($key === 'vars') { $value = (array) $value; $unset = array();