mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
return early if there are no requested extensions in the csr
This commit is contained in:
parent
d00cf8ef87
commit
eb4433d1ae
1 changed files with 3 additions and 0 deletions
|
@ -163,6 +163,9 @@ def _get_csr_extensions(csr):
|
|||
if csryaml and 'Requested Extensions' in csryaml['Certificate Request']['Data']:
|
||||
csrexts = csryaml['Certificate Request']['Data']['Requested Extensions']
|
||||
|
||||
if not csrexts:
|
||||
return ret
|
||||
|
||||
for short_name, long_name in six.iteritems(EXT_NAME_MAPPINGS):
|
||||
if long_name in csrexts:
|
||||
ret[short_name] = csrexts[long_name]
|
||||
|
|
Loading…
Add table
Reference in a new issue