mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaCommandArgument: render simple args compact
This commit is contained in:
parent
06ea68f0e9
commit
6ba5e44071
@ -84,6 +84,10 @@ class IcingaCommandArgument extends IcingaObject
|
||||
$data['description'] = c::renderString($this->description);
|
||||
}
|
||||
|
||||
return c::renderDictionary($data);
|
||||
if (array_keys($data) === array('value')) {
|
||||
return $data['value'];
|
||||
} else {
|
||||
return c::renderDictionary($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user