IcingaObject: fix argument retrieval

This commit is contained in:
Thomas Gelf 2016-04-03 21:27:49 +02:00
parent 5854e56419
commit 36c4e51aa0
1 changed files with 7 additions and 2 deletions

View File

@ -426,6 +426,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return $this;
}
protected function getArguments()
{
return $this->arguments()->toPlainObject();
}
protected function setAssignments($value)
{
$this->assignments()->setValues($value);
@ -1704,8 +1709,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
if ($this->supportsArguments()) {
$args = $this->arguments()->toUnmodifiedPlainObject();
if (! empty($arguments)) {
$props['arguments'] = $arguments;
if (! empty($args)) {
$props['arguments'] = $args;
}
}