Bug #2235

Some command line output gets truncated

Added by Adam Heath almost 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:07/28/2013
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 4.2

Description

The following command line tools, and their subcommands, need a way to not have truncated output:


oneacct
onehost list
onehost show $name_or_number # the vm names are truncated at the bottom
oneimage list
oneimage show $name_or_number # the vm names are truncated at the bottom
oneuser list
onevnet list
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".

History

#1 Updated by Ruben S. Montero almost 8 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.

#2 Updated by Ruben S. Montero almost 8 years ago

Hi Adam,

please note that the user can set the values in $HOME/.one/cli, so she can set set it to the terminal width. This is not dynamic and will not readjust but IMHO it is good enough...

Also available in: Atom PDF