mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix: VPC Key Error (#1695)
Co-authored-by: sergargar <sergio@verica.io>
This commit is contained in:
@@ -99,7 +99,8 @@ class VPC:
|
|||||||
if (
|
if (
|
||||||
route["Origin"] != "CreateRouteTable"
|
route["Origin"] != "CreateRouteTable"
|
||||||
): # avoid default route table
|
): # avoid default route table
|
||||||
destination_cidrs.append(route["DestinationCidrBlock"])
|
if "DestinationCidrBlock" in route:
|
||||||
|
destination_cidrs.append(route["DestinationCidrBlock"])
|
||||||
conn.route_tables.append(
|
conn.route_tables.append(
|
||||||
Route(
|
Route(
|
||||||
route_table["RouteTableId"],
|
route_table["RouteTableId"],
|
||||||
|
|||||||
Reference in New Issue
Block a user