Skip to content

Commit 4bce716

Browse files
openstackerstevemar
authored andcommitted
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
1 parent 6eef327 commit 4bce716

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

openstackclient/image/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
LOG = logging.getLogger(__name__)
2424

25-
DEFAULT_API_VERSION = '1'
25+
DEFAULT_API_VERSION = '2'
2626
API_VERSION_OPTION = 'os_image_api_version'
2727
API_NAME = "image"
2828
API_VERSIONS = {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- Changed the default version of ``OS_IMAGE_API_VERSION`` to ``2``. Image v1
4+
has been deprecated for more than six months and other projects, such as
5+
`shade` and `os-client-config` are using Image v2 by default as well.
6+
[Bug `1642772 <https://bugs.launchpad.net/bugs/1642772>`_]

0 commit comments

Comments
 (0)