Update service clist commands for v2 and v3

Changes to the 'service list' commands for Identity v2 and v3:
* Document support for --long
* Add Description to v3 output with --long
* v3 output is now (ID, Name, Type), with (Description, Enabled) added with --long
* Change v2 output to match v3 output, with the absense of Enabled.
* Update doc to match

Closes-Bug: #1411337
Change-Id: I999e3df22f61350cdeba63bbb7d01145c2ffeeaf
This commit is contained in:
Dean Troyer
2015-01-16 10:54:00 -06:00
parent 9057cedfd4
commit c2c3f2e0f2
5 changed files with 48 additions and 24 deletions
doc/source/command-objects
openstackclient

@ -54,7 +54,9 @@ Delete service
os service delete
<service>
:option:`<service>`
.. _service_delete-type:
.. describe:: <service>
Service to delete (type, name or ID)
service list
@ -72,11 +74,8 @@ List services
List additional fields in output
*Identity version 2 only*
Returns service fields ID and Name, `--long` adds Type and Description
to the output. When Identity API version 3 is selected all columns are
always displayed, `--long` is silently accepted for backward-compatibility.
Returns service fields ID, Name and Type. :option:`--long` adds Description
and Enabled (*Identity version 3 only*) to the output.
service set
-----------