Closed danieljamesscott closed 1 year ago
I've hit a race condition when creating/updating a large number of certificates.
While in find_certificate, and checking whether the certificate domain name matches:
find_certificate
https://github.com/dflook/cloudformation-dns-certificate/blob/master/src/troposphere_dns_certificate/certificate.py#L126
I occasionally encounter a certificate object which does not contain a DomainName, leading to a KeyError.
certificate
DomainName
KeyError
Is it a good idea to change the conditional to something like:
domain_name = certificate.get('DomainName') if domain_name and p['DomainName'].lower() == domain_name: ...
So that if the certificate is 'being created', and does not contain a domain name, then it checks the tags.
This is fixed in version 2.0.0
I've hit a race condition when creating/updating a large number of certificates.
While in
find_certificate
, and checking whether the certificate domain name matches:https://github.com/dflook/cloudformation-dns-certificate/blob/master/src/troposphere_dns_certificate/certificate.py#L126
I occasionally encounter a
certificate
object which does not contain aDomainName
, leading to aKeyError
.Is it a good idea to change the conditional to something like:
So that if the certificate is 'being created', and does not contain a domain name, then it checks the tags.