mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
commit
0bdb29402a
1 changed files with 4 additions and 0 deletions
|
@ -624,6 +624,10 @@ def get_repo_data(saltenv='base'):
|
|||
cached_repo = __salt__['cp.is_cached'](repocache, saltenv)
|
||||
if not cached_repo:
|
||||
__salt__['pkg.refresh_db']()
|
||||
cached_repo = __salt__['cp.is_cached'](repocache, saltenv)
|
||||
if not __salt__['file.file_exists'](cached_repo):
|
||||
log.error('No repo file found on the minion')
|
||||
return {}
|
||||
try:
|
||||
with salt.utils.fopen(repocache, 'rb') as repofile:
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue