mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
state.sls hangs on file.recurse with clean: True on windows
This commit is contained in:
parent
923f9741fe
commit
c5841e2ade
1 changed files with 5 additions and 1 deletions
|
@ -446,7 +446,11 @@ def _clean_dir(root, keep, exclude_pat):
|
|||
while True:
|
||||
fn_ = os.path.dirname(fn_)
|
||||
real_keep.add(fn_)
|
||||
if fn_ in ['/', ''.join([os.path.splitdrive(fn_)[0], '\\\\'])]:
|
||||
if fn_ in [
|
||||
os.sep,
|
||||
''.join([os.path.splitdrive(fn_)[0], os.sep]),
|
||||
''.join([os.path.splitdrive(fn_)[0], os.sep, os.sep])
|
||||
]:
|
||||
break
|
||||
|
||||
def _delete_not_kept(nfn):
|
||||
|
|
Loading…
Add table
Reference in a new issue