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:
commit
b0d8454915
|
@ -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('/')
|
||||
|
|
Loading…
Reference in New Issue