Skip to content

Commit

Permalink
flatten the lists
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelHeek committed May 29, 2024
1 parent 3707cff commit c96b96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/networking/vpn_gateway_connection/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ resource "azurerm_vpn_gateway_connection" "vpn_gateway_connection" {
dynamic "traffic_selector_policy" {
for_each = try(var.settings.traffic_selector_policy, {})
content {
local_address_ranges = traffic_selector_policy.value.local_address_ranges
remote_address_ranges = traffic_selector_policy.value.remote_address_ranges
local_address_ranges = flatten([for ts in traffic_selector_policy.value : ts.local_address_ranges])
remote_address_ranges = flatten([for ts in traffic_selector_policy.value: ts.remote_address_ranges])
}
}

Expand Down

0 comments on commit c96b96b

Please sign in to comment.