openstack-python-openstackc.../openstackclient
Dean Troyer 3abfea083a Fix compute API version snafu
novaclient 2.27.0 introduced the API microversion discovery and client.Client
now wants an api_version argument to properly work out the correct API
version in use.  OSC needs to provide this when required.

Letting the compute client plugin do the version validity checking makes more
sense than encoding it into shell.py, so I've added a new OSC plugin interface
function check_api_version() that is called from shell.py if it exists.  If it
either does not exist or it returns False the previous version checking using
API_VERSIONS is still performed.

compute.client.check_api_version() conditionally imports the new
novaclient.api_versions module and uses it if successful.  Otherwise
check_api_version() returns False and the previous code path is resumed.

One side-effect of this is that it is now valid to use --os-compute-api-version
with any valid microversion supported by the installed python-novaclient.

Closes-Bug: #1492467
Change-Id: I4535b38a5639a03a9597bf83f6394f9bb45c2b9e
2015-09-04 16:25:55 -05:00
..
api Fix 'auhentication' spelling error/mistake 2015-09-01 15:51:58 -07:00
common Running 'limits show' returns nothing 2015-08-14 10:31:53 -04:00
compute Fix compute API version snafu 2015-09-04 16:25:55 -05:00
identity Use correct domain to find project 2015-08-11 06:49:20 +00:00
image Merge "Do not set default versions in parsed args" 2015-07-24 19:51:30 +00:00
network Do not set default versions in parsed args 2015-07-18 06:28:09 -06:00
object Merge "Do not set default versions in parsed args" 2015-07-24 19:51:30 +00:00
tests Merge "Inherited info/option when listing role assignment" 2015-08-08 09:09:26 +00:00
volume default OS_VOLUME_API_VERSION to v2 2015-08-24 10:38:43 -05:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Get rid of oslo_i18n deprecation notice 2015-06-02 09:21:31 -06:00
shell.py Fix compute API version snafu 2015-09-04 16:25:55 -05:00