]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Turn db model object into a primitive object to avoid error
authorZhi Yan Liu <zhiyanl@cn.ibm.com>
Tue, 3 Sep 2013 14:40:49 +0000 (22:40 +0800)
committerZhi Yan Liu <zhiyanl@cn.ibm.com>
Thu, 12 Sep 2013 04:12:36 +0000 (12:12 +0800)
commitfbbf79f6cadbb1d2b7ce615e9fdb9a0e0f114729
treeabc91b56a10ec815b9dfa86fedee4e42a62dd847
parentd3dde4e458a209e0f1e1c8dde55d6eda38e482a5
Turn db model object into a primitive object to avoid error

In volume API controller we need turn db model object into a primitive
object to avoid error when it adding visible administrator metadata to
volume's metadata dict.

Fixes bug: 1220232

Change-Id: I5f6c4fc8dd6ca3af02db577b37dcaeee92bb42e5
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
cinder/api/v1/volumes.py
cinder/api/v2/volumes.py
cinder/db/sqlalchemy/api.py
cinder/tests/api/v1/test_volumes.py
cinder/tests/api/v2/test_volumes.py