Merge pull request #1275 from WhileLoop/fix-acm-san-count-check
Check if subject_alt_names is not none before checking length
This commit is contained in:
commit
3b0afbb570
2 changed files with 14 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ class AWSCertificateManagerResponse(BaseResponse):
|
|||
idempotency_token = self._get_param('IdempotencyToken')
|
||||
subject_alt_names = self._get_param('SubjectAlternativeNames')
|
||||
|
||||
if len(subject_alt_names) > 10:
|
||||
if subject_alt_names is not None and len(subject_alt_names) > 10:
|
||||
# There is initial AWS limit of 10
|
||||
msg = 'An ACM limit has been exceeded. Need to request SAN limit to be raised'
|
||||
return json.dumps({'__type': 'LimitExceededException', 'message': msg}), dict(status=400)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue