]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Bootable filter for listening volumes from CLI
authorSheel Rana <ranasheel2000@gmail.com>
Wed, 3 Feb 2016 18:30:11 +0000 (00:00 +0530)
committerSheel Rana <ranasheel2000@gmail.com>
Thu, 4 Feb 2016 05:04:02 +0000 (05:04 +0000)
commit47ec84182007024eba86b50de59a0bd5978b64a2
tree2a5be0ec2157c6dcc0b868c13ff417c030fabe59
parent4cfed22bf8494fe54df49f6c11a0ee3f94625864
Bootable filter for listening volumes from CLI

Currently cinder treats all values passed to it as True
for bootable filter in volume GET call.

For ex, if bootable=invalid, it converts it into True being
bootable as boolean value in db table 'volume'.

Need to update filtering functionality in cinder to address
'True' and 'False' values seperately.

Existing behavior will be kept same.
Only True/False/true/false input handling is done to treat
true/false seperately
(In current behavior, whatever input is passed for boolean
parameter, cinder convetrs it to True)

Implements : blueprint select-volume-through-bootable-option

Closes-Bug: #1535749

Change-Id: I1f1ec20441b28e01bf07bc4f60d848b653e58d58
cinder/tests/unit/test_volume.py
cinder/volume/api.py