mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #42457 from carlpett/patch-3
win_pki: Don't fail on certs without DnsNames
This commit is contained in:
commit
c5cd5ee01e
@ -155,7 +155,7 @@ def get_certs(context=_DEFAULT_CONTEXT, store=_DEFAULT_STORE):
|
||||
if key not in blacklist_keys:
|
||||
cert_info[key.lower()] = item[key]
|
||||
|
||||
cert_info['dnsnames'] = [name['Unicode'] for name in item['DnsNameList']]
|
||||
cert_info['dnsnames'] = [name.get('Unicode') for name in item.get('DnsNameList', {})]
|
||||
ret[item['Thumbprint']] = cert_info
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user