mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
tls.cert_info: strip newlines/spaces from extensions
This commit is contained in:
parent
d522d01786
commit
3ce2c3e2e4
1 changed files with 1 additions and 1 deletions
|
@ -1642,7 +1642,7 @@ def cert_info(cert, digest='sha256'):
|
|||
try:
|
||||
ext = cert.get_extension(i)
|
||||
key = salt.utils.stringutils.to_unicode(ext.get_short_name())
|
||||
ret['extensions'][key] = str(ext)
|
||||
ret['extensions'][key] = str(ext).strip()
|
||||
except AttributeError:
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue