Skip to content

Commit 2946f5b

Browse files
committed
fix(terraform) Updated metadata entry to delivery when hasV2Logging returns true
Signed-off-by: Aakarsh Maurya <mauryaaakarsh11@gmail.com>
1 parent b3982d5 commit 2946f5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pkg/iac/adapters/terraform/aws/cloudfront

pkg/iac/adapters/terraform/aws/cloudfront/adapt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func hasV2Logging(modules terraform.Modules, distributionBlock *terraform.Block)
9696

9797
deliveries := modules.GetReferencingResources(source, "aws_cloudwatch_log_delivery", "delivery_source_name")
9898
if len(deliveries) > 0 {
99-
return types.Bool(true, metadata)
99+
return types.Bool(true, deliveries[0].GetMetadata())
100100
}
101101
}
102102

0 commit comments

Comments
 (0)