Fixing certificate names. (#337)
This commit is contained in:
parent
11f4bd503b
commit
76037e8b3a
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue