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:
Rudy Attias 2015-07-20 19:14:24 +03:00
parent 3e3441937f
commit 9b224e8d4e

View File

@ -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):