Drop unused conductor manager vol_usage_update() mock

A recent change replaced calls to conductor method vol_usage_update()
with objects calls. One mock was mistakenly left in place and must be
removed before the method itself can be dropped in an upcoming
conductor rpc major version bump.

Change-Id: I2881189c904110a9f8aa85af266916d243de7586
This commit is contained in:
Hans Lindgren 2015-08-30 15:00:39 +02:00
parent ce2da347a9
commit 2a461f4160
1 changed files with 1 additions and 2 deletions

View File

@ -2077,8 +2077,7 @@ class ComputeManagerUnitTestCase(test.NoDBTestCase):
@mock.patch('nova.compute.manager.ComputeManager._driver_detach_volume')
@mock.patch('nova.compute.manager.ComputeManager.'
'_notify_about_instance_usage')
@mock.patch('nova.conductor.manager.ConductorManager.vol_usage_update')
def _test_detach_volume(self, vol_usage_update, notify_inst_usage, detach,
def _test_detach_volume(self, notify_inst_usage, detach,
bdm_get, destroy_bdm=True):
volume_id = '123'
inst_obj = mock.sentinel.inst_obj