Merge pull request #1564 from apichick/net-ipsec-over-interconnect-fix

Fixed error of inconsistent conditional result types when evaluating …
This commit is contained in:
apichick 2023-08-03 08:09:37 +02:00 committed by GitHub
commit fb003af2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -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)

View File

@ -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" {