fix(ec2): add default value to Name key for image information (#5753)

Co-authored-by: Rubén De la Torre Vico <rubendltv22@gmail.com>
This commit is contained in:
Prowler Bot
2024-11-13 10:04:02 -05:00
committed by GitHub
co-authored by Rubén De la Torre Vico
parent 1a6b20e3e7
commit 86a0ade4dd
@@ -310,7 +310,7 @@ class EC2(AWSService):
Image(
id=image["ImageId"],
arn=arn,
name=image["Name"],
name=image.get("Name", None),
public=image.get("Public", False),
region=regional_client.region,
tags=image.get("Tags"),