]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Initialize and terminate connection raise 500 err
authorhuangtianhua <huangtianhua@huawei.com>
Fri, 22 Nov 2013 09:02:32 +0000 (17:02 +0800)
committerAvishay Traeger <avishay@il.ibm.com>
Sun, 24 Nov 2013 08:48:27 +0000 (10:48 +0200)
commit60f5b775eb1306c2460a73940ef709ed62eae4e2
tree122ec22fded704f30fd9a2c22a383d41961aaeda
parentb4a9c2569935a05a4b58f655fda8e30476dd1f96
Initialize and terminate connection raise 500 err

Initialize and terminate connection should check whether "connector" is
in request body. It throws 500 error if "connector" is not present. We
should catch the KeyError and transfer it to 400 (HTTPBadRequest)
instead of.

Closes-Bug: #1253944
Change-Id: If38419592701c8a14df52f94fd46ed0fc7a17e04
cinder/api/contrib/volume_actions.py
cinder/tests/api/contrib/test_volume_actions.py