Exclude hidden directories in pkg.refresh_db

This commit is contained in:
twangboy 2018-01-17 13:52:42 -07:00
parent 7779fea7ba
commit 2f712691cf
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -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)