mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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)
|
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;
|
$key = $argument->argument_name;
|
||||||
if (array_key_exists($key, $this->arguments)) {
|
if (array_key_exists($key, $this->arguments)) {
|
||||||
$this->arguments[$key]->replaceWith($argument);
|
$this->arguments[$key]->replaceWith($argument);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user