]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
force_detach terminate_connection needs connector
authorscottda <scott.dangelo@hp.com>
Mon, 17 Aug 2015 21:36:18 +0000 (21:36 +0000)
committerscottda <scott.dangelo@hp.com>
Mon, 24 Aug 2015 20:23:38 +0000 (20:23 +0000)
commit6454429b82c8b9316293cf9e4b38d4067b8b72be
tree4ae86ff60905c6b0535954edac9a86be5748b3cb
parent31cb1f2377e0a0271a40e581b69048603af03de6
force_detach terminate_connection needs connector

The function force_detach in cinder/api/contrib/admin_actions does not
take a connector in the body of the request. When it calls terminate
connection it passes in an empty dict as the connector:
self.volume_api.terminate_connection(context, volume, {}, force=True)
This patch pulls the connector out of the body of the request, and
throws an exception if it is missing.

Change-Id: I14990eb4f42283231e4249a81d0b7fa18a8dfeae
Closes-Bug:#1485766
cinder/api/contrib/admin_actions.py
cinder/tests/unit/api/contrib/test_admin_actions.py