Merge "Add missing context to function call"
This commit is contained in:
commit
1bb4d40ed5
@ -419,8 +419,9 @@ class VZStorageTestCase(test.TestCase):
|
||||
mock_remotefs_create_cloned_volume.return_value = {
|
||||
'provider_location': self._FAKE_SHARE}
|
||||
ret = drv.create_cloned_volume(volume, src_vref)
|
||||
# Bug #1875953: code should also be passing context here
|
||||
mock_remotefs_create_cloned_volume.assert_called_once_with(
|
||||
volume, src_vref)
|
||||
volume, src_vref, self.context)
|
||||
self.assertEqual(ret, {'provider_location': self._FAKE_SHARE})
|
||||
|
||||
@mock.patch.object(vzstorage.VZStorageDriver, '_local_path_volume_info')
|
||||
|
@ -740,5 +740,5 @@ class VZStorageDriver(remotefs_drv.RemoteFSSnapDriver):
|
||||
if volume_format == DISK_FORMAT_PLOOP:
|
||||
return self._create_cloned_volume_ploop(volume, src_vref)
|
||||
else:
|
||||
return super(VZStorageDriver, self)._create_cloned_volume(volume,
|
||||
src_vref)
|
||||
return super(VZStorageDriver, self)._create_cloned_volume(
|
||||
volume, src_vref, context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user