Skip to content

Commit

Permalink
fix(ec2): add default value to Name key for image information (#5754)
Browse files Browse the repository at this point in the history
Co-authored-by: Rubén De la Torre Vico <[email protected]>
  • Loading branch information
prowler-bot and puchy22 authored Nov 13, 2024
1 parent f330d71 commit 786e1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prowler/providers/aws/services/ec2/ec2_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 786e1f8

Please sign in to comment.