IcingaArgument: enforce command object id on set
This commit is contained in:
parent
31163b0708
commit
d84369ce77
|
@ -82,7 +82,9 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
|
|||
|
||||
public function set($key, $value)
|
||||
{
|
||||
$argument = IcingaCommandArgument::create($this->mungeCommandArgument($key, $value));
|
||||
$argument = IcingaCommandArgument::create(
|
||||
$this->mungeCommandArgument($key, $value)
|
||||
)->set('command_id', $this->object->id);
|
||||
$key = $argument->argument_name;
|
||||
if (array_key_exists($key, $this->arguments)) {
|
||||
$this->arguments[$key]->replaceWith($argument);
|
||||
|
|
Loading…
Reference in New Issue