IcingaCommandArgument: render simple args compact

This commit is contained in:
Thomas Gelf 2015-12-18 16:02:48 +01:00
parent 06ea68f0e9
commit 6ba5e44071

View File

@ -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);
}
}
}