mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
parent
e4fada32f6
commit
e14cac17e3
@ -282,7 +282,7 @@ def _clean_dir(root, keep, exclude_pat):
|
||||
if nfn not in real_keep:
|
||||
# -- check if this is a part of exclude_pat(only). No need to
|
||||
# check include_pat
|
||||
if not _check_include_exclude(nfn[len(root):], None,
|
||||
if not _check_include_exclude(nfn[len(root) + 1:], None,
|
||||
exclude_pat):
|
||||
continue
|
||||
removed.add(nfn)
|
||||
|
Loading…
Reference in New Issue
Block a user