Merge "glusterfs/ganesha: add symbolic access-id to export location"

This commit is contained in:
Jenkins 2016-03-01 19:34:03 +00:00 committed by Gerrit Code Review
commit 44ac2a8832
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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=('', ''))