Skip to content

Commit

Permalink
read repo file as binary for msgpack
Browse files Browse the repository at this point in the history
  • Loading branch information
UtahDave authored and basepi committed Feb 13, 2014
1 parent 19e4e3a commit 0ef29c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/win_pkg.py
Expand Up @@ -701,7 +701,7 @@ def get_repo_data():
if not cached_repo:
__salt__['pkg.refresh_db']()
try:
with salt.utils.fopen(cached_repo, 'r') as repofile:
with salt.utils.fopen(cached_repo, 'rb') as repofile:
try:
repodata = msgpack.loads(repofile.read()) or {}
#__context__['winrepo.data'] = repodata
Expand Down

0 comments on commit 0ef29c2

Please sign in to comment.