Client raise error when input without os-image-api-version

Bug #1500677 reported by wangxiyuan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance Client
Invalid
Undecided
Unassigned

Bug Description

env: the master branch (date: 2015.09.29) python 2.7.6

input : glance image-list

result: Expected endpoint

input: glance --os-image-api-version 2 image-list . It runs well.

the reason is that when user doesn't supply os-image-api-version, according to the code :https://github.com/openstack/python-glanceclient/blob/master/glanceclient/shell.py#L654 . The client will check the version from server. But the parameter 'options' doesn't has 'func' attr. That will lead https://github.com/openstack/python-glanceclient/blob/master/glanceclient/shell.py#L449 always be False.

wangxiyuan (wangxiyuan)
Changed in python-glanceclient:
assignee: nobody → wangxiyuan (wangxiyuan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/228687

Changed in python-glanceclient:
status: New → In Progress
wangxiyuan (wangxiyuan)
Changed in python-glanceclient:
status: In Progress → Opinion
assignee: wangxiyuan (wangxiyuan) → nobody
status: Opinion → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-glanceclient (master)

Change abandoned by wangxiyuan (<email address hidden>) on branch: master
Review: https://review.openstack.org/228687

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.