Skip to content

Commit

Permalink
Merge pull request #1564 from apichick/net-ipsec-over-interconnect-fix
Browse files Browse the repository at this point in the history
Fixed error of inconsistent conditional result types when evaluating …
  • Loading branch information
apichick authored Aug 3, 2023
2 parents 6f3a484 + fe0a9ed commit fb003af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions modules/net-ipsec-over-interconnect/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
*/

locals {
peer_gateway = (
var.peer_gateway_config.create
? try(google_compute_external_vpn_gateway.default[0], null)
: var.peer_gateway_config
)
peer_gateway_id = (
var.peer_gateway_config.create
? try(google_compute_external_vpn_gateway.default[0].id, null)
Expand Down
2 changes: 1 addition & 1 deletion modules/net-ipsec-over-interconnect/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ output "bgp_peers" {

output "external_gateway" {
description = "External VPN gateway resource."
value = local.peer_gateway
value = try(google_compute_external_vpn_gateway.default[0], null)
}

output "id" {
Expand Down

0 comments on commit fb003af

Please sign in to comment.