mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 23:05:05 +00:00
fix(vpc): solves CidrBlock KeyError (#2817)
This commit is contained in:
@@ -280,7 +280,7 @@ class VPC(AWSService):
|
||||
id=subnet["SubnetId"],
|
||||
default=subnet["DefaultForAz"],
|
||||
vpc_id=subnet["VpcId"],
|
||||
cidr_block=subnet["CidrBlock"],
|
||||
cidr_block=subnet.get("CidrBlock"),
|
||||
region=regional_client.region,
|
||||
availability_zone=subnet["AvailabilityZone"],
|
||||
public=public,
|
||||
@@ -308,7 +308,7 @@ class VpcSubnet(BaseModel):
|
||||
id: str
|
||||
default: bool
|
||||
vpc_id: str
|
||||
cidr_block: str
|
||||
cidr_block: Optional[str]
|
||||
availability_zone: str
|
||||
public: bool
|
||||
nat_gateway: bool
|
||||
|
||||
Reference in New Issue
Block a user