Skip to content

Commit

Permalink
Merge pull request #871 from cloudskiff/fix/internet_gtw
Browse files Browse the repository at this point in the history
Dereference vpc_id
  • Loading branch information
eliecharra committed Jul 22, 2021
2 parents 89ea226 + 1a08192 commit 374b1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/remote/aws/ec2_internet_gateway_enumerator.go
Expand Up @@ -34,7 +34,7 @@ func (e *EC2InternetGatewayEnumerator) Enumerate() ([]resource.Resource, error)
for _, internetGateway := range internetGateways {
data := map[string]interface{}{}
if len(internetGateway.Attachments) > 0 && internetGateway.Attachments[0].VpcId != nil {
data["vpc_id"] = internetGateway.Attachments[0].VpcId
data["vpc_id"] = *internetGateway.Attachments[0].VpcId
}
results = append(
results,
Expand Down

0 comments on commit 374b1f0

Please sign in to comment.