Arguments: always render += instead of =

This allows to extend existing arguments

fixes #12941
This commit is contained in:
Thomas Gelf 2016-11-15 17:57:02 +01:00
parent 4e5dfb097e
commit d5131f7fac
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
$args[$arg->argument_name] = $arg->toConfigString(); $args[$arg->argument_name] = $arg->toConfigString();
} }
return c::renderKeyValue('arguments', c::renderDictionary($args)); return c::renderKeyOperatorValue('arguments', '+=', c::renderDictionary($args));
} }
public function __toString() public function __toString()

View File

@ -1,6 +1,6 @@
object CheckCommand "___TEST___command" { object CheckCommand "___TEST___command" {
command = [ PluginDir + "/bla" ] command = [ PluginDir + "/bla" ]
arguments = { arguments += {
"-a" = { "-a" = {
set_if = "$a$" set_if = "$a$"
} }