openstack-python-openstackc.../openstackclient
melanie witt ed87f7949e Correct REST API response fields for /os-migrations API
The compute APIs are unfortunately inconsistent with regard to the
response parameters for migrations.

* GET /servers/{server_id}/migrations returns server_uuid
* GET /os-migrations returns instance_uuid

Because the 'Server UUID' column is being specified for parsing the
response from GET /os-migrations, it is always showing as an empty
string to users.

There are a few other mismatches between the column names and the REST
API response fields [1]:

* 'Old Flavor' vs 'old_instance_type_id'
* 'New Flavor' vs 'new_instance_type_id'
* 'Type' vs 'migration_type'

This adds a new list containing the REST API response field names to
pass to utils.get_item_properties so that the responses are correctly
parsed and the client output contains the response data instead of
empty strings.

Story: 2009078
Task: 42890

[1] https://docs.openstack.org/api-ref/compute/?expanded=list-migrations-detail#list-migrations

Change-Id: I8aab60619e0225047f6a1c31e44917ca8fcc799e
2021-07-28 15:25:06 +00:00
..
api Remove usage of six 2020-10-07 02:15:25 +00:00
common Merge "Add support for token caching" 2021-04-09 23:29:03 +00:00
compute Correct REST API response fields for /os-migrations API 2021-07-28 15:25:06 +00:00
identity Merge "Add name and enabled param in ListDomain parser" 2020-12-22 13:30:59 +00:00
image Implements hide image 2021-03-25 08:57:31 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Add support for Neutron's L3 conntrack helper resource 2021-06-07 15:34:30 +02:00
object Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
tests Correct REST API response fields for /os-migrations API 2021-07-28 15:25:06 +00:00
volume volume: Add more missing 'volume backup *' options 2021-06-10 11:21:25 +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 Remove usage of six 2020-10-07 02:15:25 +00:00