Merge "glusterfs/ganesha: add symbolic access-id to export location"
This commit is contained in:
commit
44ac2a8832
|
@ -330,7 +330,7 @@ class GaneshaNFSHelper(ganesha.GaneshaNASHelper):
|
|||
**kwargs)
|
||||
|
||||
def get_export(self, share):
|
||||
return ':/'.join((self.ganesha_host, share['name']))
|
||||
return ':/'.join((self.ganesha_host, share['name'] + "--<access-id>"))
|
||||
|
||||
def init_helper(self):
|
||||
@utils.synchronized(self.tag)
|
||||
|
|
|
@ -542,7 +542,7 @@ class GaneshaNFSHelperTestCase(test.TestCase):
|
|||
def test_get_export(self):
|
||||
ret = self._helper.get_export(self.share)
|
||||
|
||||
self.assertEqual('example.com:/fakename', ret)
|
||||
self.assertEqual('example.com:/fakename--<access-id>', ret)
|
||||
|
||||
def test_init_remote_ganesha_server(self):
|
||||
ssh_execute = mock.Mock(return_value=('', ''))
|
||||
|
|
Loading…
Reference in New Issue