mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed problem trying to load file with name of boolean type
This commit is contained in:
parent
69ef81caba
commit
c53e11d42c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue