openstack-python-openstackc.../openstackclient
Stephen Finucane f43e2ed20d compute: Fix formatting of 'server show'
In change Ic253184ee5f911ec2052419d328260dc4664b273, we switched to
using the SDK for the 'server show' command. There were a couple of
issues with this change, which we address here:

- openstacksdk uses different names for fields than the nova API. We
  opted to output both the original names and the openstacksdk aliases
  in the output. With testing, however, it's become obvious that the
  resulting output is very long and rather unfriendly from a UX
  perspective. We opt to only show fields with their original names.

- A number of fields included in the output are only valid in requests
  and will never be present in responses. These are removed.

- A number of fields are not present in later API microversions or are
  only present under certain conditions. These are removed from output
  when not included in responses.

- The image and flavor fields both had errant logic that resulted in
  unnecessary or incorrect information being show. This logic is
  corrected.

With these changes, the output now resembles the output seen before the
migration to openstacksdk. In the future we may wish to build on this
further and switch from a blacklist model (removing the fields we do not
wish to show from output) to a whitelist model (specifically stating
which fields to show) but that's a change for another day.

Change-Id: I7e3eaa0149bff202c8fd4538356cbc75b4f7e708
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-05-17 17:24:44 +01:00
..
api Blacken openstackclient.api 2023-05-10 10:51:30 +01:00
common Blacken openstack.common 2023-05-10 10:51:30 +01:00
compute compute: Fix formatting of 'server show' 2023-05-17 17:24:44 +01:00
identity Blacken openstackclient.identity 2023-05-10 10:51:30 +01:00
image Blacken openstackclient.image 2023-05-10 10:51:30 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Blacken openstackclient.network 2023-05-10 10:51:30 +01:00
object Blacken openstackclient.object 2023-05-10 10:51:30 +01:00
tests compute: Fix formatting of 'server show' 2023-05-17 17:24:44 +01:00
volume Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Blacken everything else 2023-05-10 10:51:30 +01:00