mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Exclude hidden directories in pkg.refresh_db
This commit is contained in:
parent
7779fea7ba
commit
2f712691cf
1 changed files with 2 additions and 1 deletions
|
@ -650,7 +650,8 @@ def refresh_db(**kwargs):
|
|||
__salt__['cp.cache_dir'](
|
||||
repo_details.winrepo_source_dir,
|
||||
saltenv,
|
||||
include_pat='*.sls'
|
||||
include_pat='*.sls',
|
||||
exclude_pat='E@\/\..*\/' # Exclude all hidden directories (.git)
|
||||
)
|
||||
|
||||
return genrepo(saltenv=saltenv, verbose=verbose, failhard=failhard)
|
||||
|
|
Loading…
Add table
Reference in a new issue