diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-10-08 19:47:37 +0900 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-10-12 17:05:55 +0900 |
| commit | 36937bbf6300a468f0eb1da5461c2edeb8d47a44 (patch) | |
| tree | 16a35e98f8dd96ef38f62ed4b52d1997fc459f1f /glanceclient/shell.py | |
| parent | 542941cef02b62336ba12d947a19919c8764dc84 (diff) | |
| download | python-glanceclient-36937bbf6300a468f0eb1da5461c2edeb8d47a44.tar.gz | |
Use the subcomand parsed args instead of the base
Pass the subcomand's arguments instead of the base ones to the endpoint
creation call when quering the `/versions` endpoint. Passing the wrong
arguments will end in the auth_requirement not being identified and an
error 'Expected Endpoint' will be raised as no endpoint will be gotten
from keystone.
This patch also removes an unnecessary mock in the test code related to
this fix.
Depends-On Iefeb9bc123f8c65fecd0cba585ecd3eb349b23a6
Change-Id: I46088130b9175798e3719e43f48dc474fbc8a251
Closes-bug: #1504058
Diffstat (limited to 'glanceclient/shell.py')
| -rwxr-xr-x | glanceclient/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py index 06b2c46..33480f3 100755 --- a/glanceclient/shell.py +++ b/glanceclient/shell.py @@ -654,7 +654,7 @@ class OpenStackImagesShell(object): if not options.os_image_api_version and api_version == 2: switch_version = True - client = self._get_versioned_client('2', options) + client = self._get_versioned_client('2', args) resp, body = client.http_client.get('/versions') |
