Skip to content

Commit

Permalink
fix(acm): Key Error DomainName (#6739)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfagoagas authored Jan 30, 2025
1 parent 8f0772c commit bf2210d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prowler/providers/aws/services/acm/acm_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _list_certificates(self, regional_client):
certificate_expiration_time = 0
self.certificates[certificate["CertificateArn"]] = Certificate(
arn=certificate["CertificateArn"],
name=certificate["DomainName"],
name=certificate.get("DomainName", ""),
id=certificate["CertificateArn"].split("/")[-1],
type=certificate["Type"],
key_algorithm=certificate["KeyAlgorithm"],
Expand Down

0 comments on commit bf2210d

Please sign in to comment.