]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Support volume_readonly_update using XML format
authorzhangyanzi <zhangyanzi@huawei.com>
Sat, 26 Oct 2013 01:39:58 +0000 (09:39 +0800)
committerzhangyanzi <zhangyanzi@huawei.com>
Tue, 5 Nov 2013 01:51:51 +0000 (09:51 +0800)
commit76497ce9607df98e9e10fb1de1b6e607432f731b
tree2acd5a6f3cf9779df06a0791578d20f7635352f6
parentffad0387caf4547df5d62f0af020a8e3f9ab5c86
Support volume_readonly_update using XML format

Almost all API support JSON and XML format together,
But this API does not support xml format.
In the request of xml format,
the type of parameter "readonly" in the body is string.
In the request of JSON format,
the type of parameter "readonly" in the body is bool.
But the code only support bool, not support string.
This branch is to solve this problem.

Closes-bug #1244848

Change-Id: I7f2b09a0063df9daad3fdd09789f8e19c43b0aa3
cinder/api/contrib/volume_actions.py
cinder/tests/api/contrib/test_volume_actions.py