Merge pull request #25763 from twangboy/fix_25437

Fix 25437
This commit is contained in:
Thomas S Hatch 2015-07-28 09:29:27 -06:00
commit 0bdb29402a

View file

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