summaryrefslogtreecommitdiff
path: root/openstackclient/image/client.py
diff options
context:
space:
mode:
authorFei Long Wang <flwang@catalyst.net.nz>2016-11-17 16:59:57 +1300
committerSteve Martinelli <s.martinelli@gmail.com>2016-11-18 12:58:31 +0000
commit4bce7167338908b082eb8ea946adcd60109e0907 (patch)
tree7742747e9447f0364340a309e92a6d4f15cb91cf /openstackclient/image/client.py
parent6eef3277f5b3ebcceded9963627b78b2307621a9 (diff)
downloadpython-openstackclient-4bce7167338908b082eb8ea946adcd60109e0907.tar.gz
Using v2 as the default version of Glance
Glance API v1 has been deprecated, so it's better to use v2 as the default API version in openstackclient. Closes-Bug: 1642772 Change-Id: I7d9e3228a2f3a3d0da437b7ee6f23e528de27fd3
Diffstat (limited to 'openstackclient/image/client.py')
-rw-r--r--openstackclient/image/client.py2
1 files changed, 1 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 = {