mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #12662 from eliasp/win_repo-empty-productname
Fix numerous crashes in consumers of Windows package lists due to empty package names.
This commit is contained in:
commit
0e50d06b34
1 changed files with 4 additions and 1 deletions
|
@ -376,7 +376,10 @@ def _get_reg_software():
|
|||
"DisplayVersion")
|
||||
if name not in ignore_list:
|
||||
if prd_name != 'Not Found':
|
||||
reg_software[prd_name] = prd_ver
|
||||
# some MS Office updates don't register a product name which means
|
||||
# their information is useless
|
||||
if prd_name != '':
|
||||
reg_software[prd_name] = prd_ver
|
||||
return reg_software
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue