From 786e1f890c15d3089372f7394ec97323df575ef8 Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Wed, 13 Nov 2024 16:10:06 +0100 Subject: [PATCH] fix(ec2): add default value to Name key for image information (#5754) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rubén De la Torre Vico --- prowler/providers/aws/services/ec2/ec2_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prowler/providers/aws/services/ec2/ec2_service.py b/prowler/providers/aws/services/ec2/ec2_service.py index 7ca7b7719f3..dcf49f6066d 100644 --- a/prowler/providers/aws/services/ec2/ec2_service.py +++ b/prowler/providers/aws/services/ec2/ec2_service.py @@ -357,7 +357,7 @@ def _describe_images(self, regional_client): 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"),