Skip to content

Commit

Permalink
fix(gcp): Not all gcp projects have name (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacky9813 committed Jul 5, 2024
1 parent d1a7d19 commit cd7f19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prowler/providers/gcp/gcp_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def get_projects(self) -> dict[str, GCPProject]:
gcp_project = GCPProject(
number=project["projectNumber"],
id=project_id,
name=project["name"],
name=project.get("name", project_id),
lifecycle_state=project["lifecycleState"],
labels=labels,
)
Expand Down

0 comments on commit cd7f19c

Please sign in to comment.