mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix for #25532
fix for #25532, convert name_map keys to unicode to be able to compare it with the keys from _get_reg_software()
This commit is contained in:
parent
3e3441937f
commit
9b224e8d4e
1 changed files with 5 additions and 1 deletions
|
@ -643,7 +643,11 @@ def _get_name_map():
|
|||
'''
|
||||
Return a reverse map of full pkg names to the names recognized by winrepo.
|
||||
'''
|
||||
return get_repo_data().get('name_map', {})
|
||||
u_name_map = {}
|
||||
name_map = get_repo_data().get('name_map', {})
|
||||
for k in name_map.keys():
|
||||
u_name_map[salt.utils.sdecode(k)] = name_map[k]
|
||||
return u_name_map
|
||||
|
||||
|
||||
def _get_package_info(name):
|
||||
|
|
Loading…
Add table
Reference in a new issue