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

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('/')