diff --git a/lemur/plugins/lemur_aws/plugin.py b/lemur/plugins/lemur_aws/plugin.py index 2cf00978..97d011d0 100644 --- a/lemur/plugins/lemur_aws/plugin.py +++ b/lemur/plugins/lemur_aws/plugin.py @@ -83,8 +83,8 @@ class AWSSourcePlugin(SourcePlugin): cert_body, cert_chain = iam.get_cert_from_arn(arn) cert_name = iam.get_name_from_arn(arn) cert = dict( - public_certificate=cert_body, - intermediate_certificate=cert_chain, + body=cert_body, + chain=cert_chain, name=cert_name ) certs.append(cert) diff --git a/lemur/sources/service.py b/lemur/sources/service.py index 49fda560..c5381da9 100644 --- a/lemur/sources/service.py +++ b/lemur/sources/service.py @@ -20,7 +20,7 @@ def _disassociate_certs_from_source(current_certificates, found_certificates, so missing = [] for cc in current_certificates: for fc in found_certificates: - if fc['public_certificate'] == cc.body: + if fc['body'] == cc.body: break else: missing.append(cc) @@ -81,7 +81,7 @@ def sync(labels=None): certificates = s.get_certificates(source.options) for certificate in certificates: - exists = cert_service.find_duplicates(certificate['public_certificate']) + exists = cert_service.find_duplicates(certificate['body']) if not exists: sync_create(certificate, source)