Skip to content

Commit

Permalink
Fixed error of inconsistent conditional result types when evaluating …
Browse files Browse the repository at this point in the history
…local peer_gateway variable
  • Loading branch information
apichick committed Aug 2, 2023
1 parent 6f3a484 commit fe0a9ed
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 fe0a9ed

Please sign in to comment.