Skip to content

Commit

Permalink
Merge pull request #6 from quantum-sec/feature/XDR-373
Browse files Browse the repository at this point in the history
XDR-373: No longer create empty bgp_settings when enable_bgp is false
  • Loading branch information
arledesma authored Mar 12, 2021
2 parents 7db0112 + 431a31f commit d118d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/azure-virtual-network-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "azurerm_virtual_network_gateway" "gateway" {
}

dynamic "bgp_settings" {
for_each = var.enable_bgp == true ? [1] : [0]
for_each = var.enable_bgp == true ? [1] : []

content {
asn = var.bgp_asn
Expand All @@ -58,7 +58,7 @@ resource "azurerm_virtual_network_gateway" "gateway" {
vpn_client_protocols = var.vpn_client_protocols

dynamic "root_certificate" {
for_each = var.vpn_root_certificate_name != null ? [1] : [0]
for_each = var.vpn_root_certificate_name != null ? [1] : []

content {
name = var.vpn_root_certificate_name
Expand Down

0 comments on commit d118d9f

Please sign in to comment.