mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix posix path separator
This commit is contained in:
parent
ccee2bfdf4
commit
2b46c89226
@ -1236,7 +1236,7 @@ def recurse(name,
|
||||
if include_empty:
|
||||
mdirs = __salt__['cp.list_master_dirs'](env)
|
||||
for mdir in mdirs:
|
||||
if not mdir.startswith('{0}{1}'.format(srcpath, os.path.sep)):
|
||||
if not mdir.startswith('{0}{1}'.format(srcpath, '/')): #same as above
|
||||
continue
|
||||
mdest = os.path.join(name, os.path.relpath(mdir, srcpath))
|
||||
manage_directory(mdest)
|
||||
|
Loading…
Reference in New Issue
Block a user