openstack-python-openstackc.../openstackclient
Imtiaz Chowdhury 1bd2bf67da Fixes image api URL endpoint for certain scenario
openstackclient fails to get image list when the image api endpoint
has 'v2' substring in the URL. Instead of checking whether the api
endpoint URL terminates with '/v2', the current logic is checking
whether 'v2' appears anywhere in the endpoint string.

This issue was discovered on a production setup where certain
server names had 'v2' in their names. For example, when a hostname
is gopher.dev20.com, the image list APIs fail.

This commit updates the unit test to reflect this scenario. Without
the change in openstackclient/api/image_v2.py, all the unit tests
fail.

Co-Authored-By: sergio.carvalho@workday.com
Change-Id: I26b85afd646938272dbabe8e045b337b7df58c7d
Closes-Bug: 1652827
2017-01-04 18:14:10 +00:00
..
api Fixes image api URL endpoint for certain scenario 2017-01-04 18:14:10 +00:00
common Merge "Use project_domain_id only in password auth" 2016-11-18 18:02:35 +00:00
compute update server migrate '--wait' description 2016-12-30 14:16:32 +08:00
identity Remove auth_with_unscoped_saml decorator 2016-12-04 18:59:09 +00:00
image Add ploop to supported disk formats 2016-12-15 12:46:55 -05:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network Merge "Fix a spelling error" 2016-12-28 03:16:01 +00:00
object translate all command help strings 2016-11-17 02:33:42 +00:00
tests Fixes image api URL endpoint for certain scenario 2017-01-04 18:14:10 +00:00
volume Merge "Add --default option to "volume type list"" 2016-12-18 12:20:28 +00:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Update translation setup 2016-01-29 08:18:50 +09:00
shell.py Correct reraising of exception 2016-12-02 09:56:27 +08:00