Arguments: always render += instead of =
This allows to extend existing arguments fixes #12941
This commit is contained in:
parent
4e5dfb097e
commit
d5131f7fac
|
@ -371,7 +371,7 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
|
|||
|
||||
$args[$arg->argument_name] = $arg->toConfigString();
|
||||
}
|
||||
return c::renderKeyValue('arguments', c::renderDictionary($args));
|
||||
return c::renderKeyOperatorValue('arguments', '+=', c::renderDictionary($args));
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
object CheckCommand "___TEST___command" {
|
||||
command = [ PluginDir + "/bla" ]
|
||||
arguments = {
|
||||
arguments += {
|
||||
"-a" = {
|
||||
set_if = "$a$"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue