Skip to content

Commit ace3603

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Update default nova api version to 2.1"
2 parents d0ecb89 + c9fd35a commit ace3603

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

openstackclient/compute/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323

2424
LOG = logging.getLogger(__name__)
2525

26-
DEFAULT_API_VERSION = '2'
26+
DEFAULT_API_VERSION = '2.1'
2727
API_VERSION_OPTION = 'os_compute_api_version'
2828
API_NAME = 'compute'
2929
API_VERSIONS = {
3030
"2": "novaclient.client",
31+
"2.1": "novaclient.client",
3132
}
3233

3334
# Save the microversion if in use

openstackclient/tests/unit/fakes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
_s = TEST_RESPONSE_DICT.add_service('network', name='neutron')
3939
_s.add_endpoint(AUTH_URL + ':9696')
4040
_s = TEST_RESPONSE_DICT.add_service('compute', name='nova')
41-
_s.add_endpoint(AUTH_URL + ':8774/v2')
41+
_s.add_endpoint(AUTH_URL + ':8774/v2.1')
4242
_s = TEST_RESPONSE_DICT.add_service('image', name='glance')
4343
_s.add_endpoint(AUTH_URL + ':9292')
4444
_s = TEST_RESPONSE_DICT.add_service('object', name='swift')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Update novaclient DEFAULT_API_VERSION to 2.1 from 2.0
5+
[Bug `1588171 <https://bugs.launchpad.net/bugs/1588171>`_]

0 commit comments

Comments
 (0)