mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +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
@ -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…
Reference in New Issue
Block a user