Skip to content

Commit

Permalink
Merge pull request #3115 from ankitkinra/hotfix-multivpc-subnetwork-link
Browse files Browse the repository at this point in the history
Revert PR#3046 and add more line breaks for readability
  • Loading branch information
ankitkinra authored Oct 10, 2024
2 parents f9f9256 + 06bf17e commit eb00254
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/network/multivpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ locals {
maximum_subnetworks = pow(2, local.subnetwork_new_bits)
additional_networks = [
for vpc in module.vpcs :
merge(var.network_interface_defaults, { network = vpc.network_name, subnetwork = vpc.subnetwork_self_link })
merge(var.network_interface_defaults, {
network = vpc.network_name
subnetwork = vpc.subnetwork_name
subnetwork_project = var.project_id
})
]
}

Expand Down

0 comments on commit eb00254

Please sign in to comment.