Prevent dashes from appearing at end of cert name in AWS

This commit is contained in:
Curtis Castrapel 2018-10-23 12:49:58 -07:00
parent e168221bdc
commit 054cc64ee8
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') client = kwargs.pop('client')
if not path: if not path or path == '/':
path = '/' path = '/'
else: else:
name = name + '-' + path.strip('/') name = name + '-' + path.strip('/')