Merge pull request #5 from dwoz/win_pkg_flaky

Log results of cache_dir for now
This commit is contained in:
Megan Wilhite 2018-10-05 17:18:54 -04:00 committed by GitHub
commit fd5e8421d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -693,12 +693,13 @@ def refresh_db(**kwargs):
# Cache repo-ng locally
log.info('Fetching *.sls files from {0}'.format(repo_details.winrepo_source_dir))
__salt__['cp.cache_dir'](
ret = __salt__['cp.cache_dir'](
path=repo_details.winrepo_source_dir,
saltenv=saltenv,
include_pat='*.sls',
exclude_pat=r'E@\/\..*?\/' # Exclude all hidden directories (.git)
)
log.debug("refresh_db - Return from cache_dir %s", repr(ret))
return genrepo(saltenv=saltenv, verbose=verbose, failhard=failhard)