Merge pull request #1889 from castrapel/dash_in_aws_name

Prevent dashes from appearing at end of cert name in AWS
This commit is contained in:
Curtis 2018-10-23 13:02:43 -07:00 committed by GitHub
commit b0d8454915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def upload_cert(name, body, private_key, path, cert_chain=None, **kwargs):
"""
client = kwargs.pop('client')
if not path:
if not path or path == '/':
path = '/'
else:
name = name + '-' + path.strip('/')