mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove hacky workaround to get Windows to decode deserialized data properly
This commit is contained in:
parent
0b5729e58a
commit
76e5d81bb4
1 changed files with 1 additions and 1 deletions
|
@ -1882,7 +1882,7 @@ def get_repo_data(saltenv='base'):
|
|||
serial = salt.payload.Serial(__opts__)
|
||||
with salt.utils.files.fopen(repo_details.winrepo_file, 'rb') as repofile:
|
||||
try:
|
||||
repodata = salt.utils.data.decode(serial.loads(repofile.read(), encoding='utf-8') or {})
|
||||
repodata = salt.utils.data.decode(serial.loads(repofile.read()) or {})
|
||||
__context__['winrepo.data'] = repodata
|
||||
return repodata
|
||||
except Exception as exc:
|
||||
|
|
Loading…
Add table
Reference in a new issue