vzstorage: use remotefs.VZStorageRemoteFSClient
After this change I5891940485c5614d188164d2e0af73486cfa6a90 landed, Vzstorage driver still uses RemoteFsClient, which needs to change too. Closes-Bug: 1692479 Change-Id: Ib83e16f990bb629d9b9acb7c403a3f626d4ae6af
This commit is contained in:
parent
3af8a44560
commit
91c391e885
@ -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):
|
||||
'vzstorage_mount_options',
|
||||
CONF.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…
x
Reference in New Issue
Block a user