Some command line output gets truncated
|Affected Versions:||OpenNebula 4.2|
The following command line tools, and their subcommands, need a way to not have truncated output:
onehost show $name_or_number # the vm names are truncated at the bottom
oneimage show $name_or_number # the vm names are truncated at the bottom
onevnet show $name_or_number # the vm names are truncated at the bottom
Additionally, the fields that get truncated are: VM.STATUS, VM.NAME, VM.HOST. Basically, I'd prefer it all list-type outputs anywhere would never truncate any of their fields. Alignment is still fine, however. Just loop over all the items, find the max width of each one, then fill with spaces.
ps: This has bugged me since 3.8, but I've only recently started filing bugs. I wish redmine allowed me to select multiple "affects versions".
#1 Updated by Ruben S. Montero about 6 years ago
- Status changed from Pending to Closed
- Resolution set to worksforme
We try to stick to the 80 column width. However, you can easily set the width of each field (even the fields you want to show) for each command in /etc/one
The output of these commands can be customized by modifying the configuration files that can be found in /etc/one/cli/. They also can be customized on a per-user basis, in this case the configuration files should be placed in $HOME/.one/cli.