Prevent dashes from appearing at end of cert name in AWS
This commit is contained in:
parent
e168221bdc
commit
054cc64ee8
|
@ -66,7 +66,7 @@ def upload_cert(name, body, private_key, path, cert_chain=None, **kwargs):
|
||||||
"""
|
"""
|
||||||
client = kwargs.pop('client')
|
client = kwargs.pop('client')
|
||||||
|
|
||||||
if not path:
|
if not path or path == '/':
|
||||||
path = '/'
|
path = '/'
|
||||||
else:
|
else:
|
||||||
name = name + '-' + path.strip('/')
|
name = name + '-' + path.strip('/')
|
||||||
|
|
Loading…
Reference in New Issue