summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-12-02 18:29:08 +0000
committerGerrit Code Review <review@openstack.org>2016-12-02 18:29:08 +0000
commit19ca396508510a3918c6b2e9688dba7d3731801f (patch)
treeee5f3f0a01450b7ee0ff09de77b09ff6088e2b64
parent5ec4290e27d7b79323ca1391327b7c5eda08cd71 (diff)
parent4bce7167338908b082eb8ea946adcd60109e0907 (diff)
downloadpython-openstackclient-19ca396508510a3918c6b2e9688dba7d3731801f.tar.gz
Merge "Using v2 as the default version of Glance"
-rw-r--r--openstackclient/image/client.py2
-rw-r--r--releasenotes/notes/bug-1642772-19f53765bef8ee91.yaml6
2 files changed, 7 insertions, 1 deletions
diff --git a/openstackclient/image/client.py b/openstackclient/image/client.py
index 1be6c765..b67c291f 100644
--- a/openstackclient/image/client.py
+++ b/openstackclient/image/client.py
@@ -22,7 +22,7 @@ from openstackclient.i18n import _
LOG = logging.getLogger(__name__)
-DEFAULT_API_VERSION = '1'
+DEFAULT_API_VERSION = '2'
API_VERSION_OPTION = 'os_image_api_version'
API_NAME = "image"
API_VERSIONS = {
diff --git a/releasenotes/notes/bug-1642772-19f53765bef8ee91.yaml b/releasenotes/notes/bug-1642772-19f53765bef8ee91.yaml
new file mode 100644
index 00000000..0e1a7f11
--- /dev/null
+++ b/releasenotes/notes/bug-1642772-19f53765bef8ee91.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+ - Changed the default version of ``OS_IMAGE_API_VERSION`` to ``2``. Image v1
+ has been deprecated for more than six months and other projects, such as
+ `shade` and `os-client-config` are using Image v2 by default as well.
+ [Bug `1642772 <https://bugs.launchpad.net/bugs/1642772>`_]