Fixing an issue with uploading to cloudfront. (#815)
This commit is contained in:
parent
11bd42af82
commit
21d48b32c9
|
@ -65,6 +65,12 @@ def upload_cert(name, body, private_key, path, cert_chain=None, **kwargs):
|
|||
:return:
|
||||
"""
|
||||
client = kwargs.pop('client')
|
||||
|
||||
if not path:
|
||||
path = '/'
|
||||
else:
|
||||
name = name + '-' + path.strip('/')
|
||||
|
||||
try:
|
||||
if cert_chain:
|
||||
return client.upload_server_certificate(
|
||||
|
|
Loading…
Reference in New Issue