From fcd50e10d479a63aa32c785b9a7b1c86fee7881e Mon Sep 17 00:00:00 2001 From: Leonardo Rodrigues de Oliveira <84041478+OLeonardoRodrigues@users.noreply.github.com> Date: Sun, 29 Jan 2023 00:19:04 +0000 Subject: [PATCH] Fix network watcher creation condition --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index e54c120..c93f7d7 100644 --- a/main.tf +++ b/main.tf @@ -64,7 +64,7 @@ resource "azurerm_resource_group" "nwatcher" { } resource "azurerm_network_watcher" "nwatcher" { - count = var.create_network_watcher != false ? 1 : 0 + count = var.create_network_watcher ? 1 : 0 name = "NetworkWatcher_${local.location}" location = local.location resource_group_name = azurerm_resource_group.nwatcher.0.name