Strip slashes from gitfs mountpoints

This fixes an issue where mountpoints containing a trailing slash result
in all fileclient requests for files from that repo to fail to match.
This commit is contained in:
Erik Johnson 2016-11-02 09:31:07 -05:00
parent 7b1d3b5562
commit 4e4a05731e

View file

@ -243,6 +243,7 @@ class GitProvider(object):
if hasattr(self, 'mountpoint'):
self.mountpoint = salt.utils.url.strip_proto(self.mountpoint)
self.mountpoint = self.mountpoint.strip('/')
else:
# For providers which do not use a mountpoint, assume the
# filesystem is mounted at the root of the fileserver.