liberty: two json/yaml formatters for list/show command if cliff 1.15.0 (and cliff-tablib) is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
Invalid
|
Undecided
|
Unassigned | ||
python-neutronclient |
Won't Fix
|
Undecided
|
Unassigned | ||
python-openstackclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Liberty, we have two json/yaml formatters in the help message if cliff 1.15.0 is used.
Unfortunately, JSON formatters for show command are different between cliff-tablib and cliff (1.15.0) but there is no way to distinguish two. It is confusing.
IMHO, it is better to use either of them.
This does not happen in Mitaka release, but it potentially happens if cliff-tablib is installed outside of openstack requirements.
[list command]
http://
usage: openstack server list [-h]
[...]
-f {csv,html,
[...]
[show command]
http://
usage: openstack server show [-h]
[...]
-f {html,json,
[...]
summary: |
- liberty: two json/yaml formatters for list/show command + liberty: two json/yaml formatters for list/show command if cliff 1.15.0 + is installed |
summary: |
liberty: two json/yaml formatters for list/show command if cliff 1.15.0 - is installed + (and cliff-tablib) is installed |
Changed in python-openstackclient: | |
status: | New → Invalid |
Changed in python-cliff: | |
status: | New → Invalid |
There are several options:
* Remove json and yaml formatters from cliff-tablib
This addresses the situation if the latest cliff and cliff-tablib are installed
* Add workaround to use one formatter per format (a formatter from cliff ) if two formatters are detected.
Thought?