Merge "vzstorage: use remotefs.VZStorageRemoteFSClient"
This commit is contained in:
commit
7ec31dcfe3
@ -56,8 +56,8 @@ class VZStorageTestCase(test.TestCase):
|
||||
def setUp(self):
|
||||
super(VZStorageTestCase, self).setUp()
|
||||
|
||||
self._remotefsclient = mock.patch.object(remotefs,
|
||||
'RemoteFsClient').start()
|
||||
self._remotefsclient = mock.patch.object(
|
||||
remotefs, 'VZStorageRemoteFSClient').start()
|
||||
get_mount_point = mock.Mock(return_value=self._FAKE_MNT_POINT)
|
||||
self._remotefsclient.get_mount_point = get_mount_point
|
||||
cfg = copy.copy(self._FAKE_VZ_CONFIG)
|
||||
|
@ -177,7 +177,7 @@ class VZStorageDriver(remotefs_drv.RemoteFSSnapDriver):
|
||||
self.base = self.configuration.vzstorage_mount_point_base
|
||||
opts = self.configuration.vzstorage_mount_options
|
||||
|
||||
self._remotefsclient = remotefs.RemoteFsClient(
|
||||
self._remotefsclient = remotefs.VZStorageRemoteFSClient(
|
||||
'vzstorage', root_helper, execute=execute,
|
||||
vzstorage_mount_point_base=self.base,
|
||||
vzstorage_mount_options=opts)
|
||||
|
Loading…
Reference in New Issue
Block a user