Merge "vzstorage: use remotefs.VZStorageRemoteFSClient"

This commit is contained in:
Jenkins 2017-08-07 16:02:36 +00:00 committed by Gerrit Code Review
commit 7ec31dcfe3
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)