summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openstackclient/compute/client.py3
-rw-r--r--openstackclient/tests/unit/fakes.py2
-rw-r--r--releasenotes/notes/bug-1588171-61214d0ea482988c.yaml5
3 files changed, 8 insertions, 2 deletions
diff --git a/openstackclient/compute/client.py b/openstackclient/compute/client.py
index 4cc3be98..c5b364b2 100644
--- a/openstackclient/compute/client.py
+++ b/openstackclient/compute/client.py
@@ -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
diff --git a/openstackclient/tests/unit/fakes.py b/openstackclient/tests/unit/fakes.py
index f2598366..f7cb5676 100644
--- a/openstackclient/tests/unit/fakes.py
+++ b/openstackclient/tests/unit/fakes.py
@@ -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')
diff --git a/releasenotes/notes/bug-1588171-61214d0ea482988c.yaml b/releasenotes/notes/bug-1588171-61214d0ea482988c.yaml
new file mode 100644
index 00000000..29b9168c
--- /dev/null
+++ b/releasenotes/notes/bug-1588171-61214d0ea482988c.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+ - |
+ Update novaclient DEFAULT_API_VERSION to 2.1 from 2.0
+ [Bug `1588171 <https://bugs.launchpad.net/bugs/1588171>`_] \ No newline at end of file