From 054cc64ee8daef60df63213e5ef6f2e99caea6e8 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Tue, 23 Oct 2018 12:49:58 -0700 Subject: [PATCH] Prevent dashes from appearing at end of cert name in AWS --- lemur/plugins/lemur_aws/iam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/plugins/lemur_aws/iam.py b/lemur/plugins/lemur_aws/iam.py index 677728bb..b2a07798 100644 --- a/lemur/plugins/lemur_aws/iam.py +++ b/lemur/plugins/lemur_aws/iam.py @@ -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('/')