mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Syntax change
This commit is contained in:
parent
8b6ab3b549
commit
8d778abf30
@ -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'] or []]
|
||||
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