mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
fix(ec2): handle non-existing private ip (#3906)
This commit is contained in:
@@ -261,7 +261,7 @@ class EC2(AWSService):
|
||||
id=interface["NetworkInterfaceId"],
|
||||
association=interface.get("Association", {}),
|
||||
attachment=interface.get("Attachment", {}),
|
||||
private_ip=interface["PrivateIpAddress"],
|
||||
private_ip=interface.get("PrivateIpAddress"),
|
||||
type=interface["InterfaceType"],
|
||||
subnet_id=interface["SubnetId"],
|
||||
vpc_id=interface["VpcId"],
|
||||
@@ -524,7 +524,7 @@ class NetworkInterface(BaseModel):
|
||||
id: str
|
||||
association: dict
|
||||
attachment: dict
|
||||
private_ip: str
|
||||
private_ip: Optional[str]
|
||||
type: str
|
||||
subnet_id: str
|
||||
vpc_id: str
|
||||
|
||||
Reference in New Issue
Block a user