Table formatter doesn't support empty list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
In Progress
|
Undecided
|
Cedric Brandily |
Bug Description
Table formatter is not able to handle empty list (other formatters support it) in cliff 1.17.0 because it tries to visit the first element of an empty list.
Typical example with neutronclient:
neutron port-list --json
[]
neutron --debug port-list
Traceback (most recent call last):
File "/home/
return run_command(cmd, cmd_parser, sub_argv)
File "/home/
return cmd.run(known_args)
File "/home/
self.
File "/home/
parsed_args,
File "/home/
stdout, x, int(parsed_
File "/home/
first_line = x.get_string(
IndexError: list index out of range
list index out of range
Fix proposed to branch: master /review. openstack. org/280982
Review: https:/