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

Co-authored-by: Rubén De la Torre Vico <rubendltv22@gmail.com>
This commit is contained in:
Prowler BotandRubén De la Torre Vico authored and GitHub committed 2024-11-13 10:10:06 -05:00
1 parent f330d713f6
commit 786e1f890c
1 file changed
+1 -1
@@ -357,7 +357,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"),