]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add view builder to QoS specs API extension
authorZhiteng Huang <zhithuang@ebaysf.com>
Fri, 30 Aug 2013 14:28:52 +0000 (22:28 +0800)
committerZhiteng Huang <zhithuang@ebaysf.com>
Wed, 4 Sep 2013 02:47:12 +0000 (10:47 +0800)
commit4a028e3f3307ef4cfdc4fe0cd6be50f408a84fef
treed50ad4dbc16eb840cc5abe07b1bb3d13410a59c3
parente5b6d4d82c9f225911c549022820f0c76576cfd3
Add view builder to QoS specs API extension

Add view builder for qos_specs.create(), index(), show() and associations()
to in order to make the response more easier to be consumed by client.

This patch also:
  fixed circular reference error when raising HTTP exception.
  fixed some typo in debug message and removed unused imports.

fix bug: # 1219016

Change-Id: I107888e6b4dac8eb5f1b45a87721a7b5efc45632
cinder/api/contrib/qos_specs_manage.py
cinder/api/views/qos_specs.py [new file with mode: 0644]
cinder/db/sqlalchemy/api.py
cinder/tests/api/contrib/test_qos_specs_manage.py
cinder/tests/db/test_qos_specs.py
cinder/tests/test_qos_specs.py
cinder/volume/qos_specs.py