Fixed problem trying to load file with name of boolean type

This commit is contained in:
twangboy 2015-07-21 16:25:41 -06:00
parent 69ef81caba
commit c53e11d42c

View file

@ -625,7 +625,7 @@ def get_repo_data(saltenv='base'):
if not cached_repo:
__salt__['pkg.refresh_db']()
try:
with salt.utils.fopen(cached_repo, 'rb') as repofile:
with salt.utils.fopen(repocache, 'rb') as repofile:
try:
repodata = msgpack.loads(repofile.read()) or {}
#__context__['winrepo.data'] = repodata