mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaCommandArgument: no need for format...
...when there is no value
This commit is contained in:
parent
c119c47864
commit
15a8886db7
@ -121,6 +121,12 @@ class IcingaCommandArgument extends IcingaObject
|
||||
|
||||
unset($plain->id);
|
||||
unset($plain->argument_name);
|
||||
if (! isset($plain->argument_value)) {
|
||||
unset($plain->argument_format);
|
||||
}
|
||||
if (! isset($plain->set_if)) {
|
||||
unset($plain->set_if_format);
|
||||
}
|
||||
|
||||
$this->transformPlainArgumentValue($plain);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user