Fixing an issue with uploading to cloudfront. (#815)

This commit is contained in:
kevgliss 2017-05-25 10:10:12 -07:00 committed by GitHub
parent 11bd42af82
commit 21d48b32c9
1 changed files with 6 additions and 0 deletions

View File

@ -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(