From c4a3940b4e980b3d2e08e6cb53fc8fc5f1b2f710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20De=20la=20Torre=20Vico?= Date: Wed, 13 Nov 2024 12:50:01 +0100 Subject: [PATCH] fix(ec2): add default value to Name key for image information --- 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"),