Fixing a bug were extensions got a default value (#572)

This commit is contained in:
kevgliss 2016-12-07 17:28:18 -08:00 committed by GitHub
parent 5087fa67dc
commit bdc6dc8683
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def get_additional_names(options):
"""
names = []
# add SANs if present
if options.get('extensions', 'sub_alt_names'):
if options.get('extensions'):
for san in options['extensions']['sub_alt_names']['names']:
names.append(san['value'])
return names