Merge "Update default nova api version to 2.1"

This commit is contained in:
Jenkins 2016-09-28 17:06:13 +00:00 committed by Gerrit Code Review
commit ace3603ae9
3 changed files with 8 additions and 2 deletions

View File

@ -23,11 +23,12 @@ from openstackclient.i18n import _
LOG = logging.getLogger(__name__)
DEFAULT_API_VERSION = '2'
DEFAULT_API_VERSION = '2.1'
API_VERSION_OPTION = 'os_compute_api_version'
API_NAME = 'compute'
API_VERSIONS = {
"2": "novaclient.client",
"2.1": "novaclient.client",
}
# Save the microversion if in use

View File

@ -38,7 +38,7 @@ _s.add_endpoint(AUTH_URL + ':5000/v2.0')
_s = TEST_RESPONSE_DICT.add_service('network', name='neutron')
_s.add_endpoint(AUTH_URL + ':9696')
_s = TEST_RESPONSE_DICT.add_service('compute', name='nova')
_s.add_endpoint(AUTH_URL + ':8774/v2')
_s.add_endpoint(AUTH_URL + ':8774/v2.1')
_s = TEST_RESPONSE_DICT.add_service('image', name='glance')
_s.add_endpoint(AUTH_URL + ':9292')
_s = TEST_RESPONSE_DICT.add_service('object', name='swift')

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Update novaclient DEFAULT_API_VERSION to 2.1 from 2.0
[Bug `1588171 <https://bugs.launchpad.net/bugs/1588171>`_]