openstackclient fails to add v2 suffix for certain conditions
Bug #1652827 reported by
Imtiaz Chowdhury
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Medium
|
Imtiaz Chowdhury |
Bug Description
To support v2 image API endpoints, openstackclient currently appends '/v2' to the endpoint URL. The code that adds this suffix is here: https:/
However, the logic here fails to work when the hostname itself has a 'v2' in its name. For example, if the hostname is 'myhost.
Perhaps a better implementation could be:
if not self.endpoint.
self.endpoint = '/'.join(
description: | updated |
Changed in python-openstackclient: | |
assignee: | nobody → Imtiaz Chowdhury (chowdhury-imtiaz) |
status: | New → In Progress |
Changed in python-openstackclient: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/415301
Review: https:/