mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Fix file.recurse on root of hgfs repo
This fixes a condition where a file.recurse fails on the root of an hgfs repo when the repo has a mountpoint. See #20812.
This commit is contained in:
parent
6f6f4b9ce0
commit
346f59c6e5
@ -875,4 +875,6 @@ def _get_dir_list(load):
|
||||
ret.add(os.path.join(repo['mountpoint'], relpath))
|
||||
split = split[0].rsplit('/', 1)
|
||||
repo['repo'].close()
|
||||
if repo['mountpoint']:
|
||||
ret.add(repo['mountpoint'])
|
||||
return sorted(ret)
|
||||
|
Loading…
Reference in New Issue
Block a user