diff --git a/modules/net-lb-ext/health-check.tf b/modules/net-lb-ext/health-check.tf index c7befbc50d..d5208f08ab 100644 --- a/modules/net-lb-ext/health-check.tf +++ b/modules/net-lb-ext/health-check.tf @@ -18,7 +18,7 @@ locals { hc = ( - var.health_check == null ? null : var.health_check_config + var.health_check != null ? null : var.health_check_config ) hc_grpc = try(local.hc.grpc, null) != null hc_http = try(local.hc.http, null) != null diff --git a/modules/net-lb-int/health-check.tf b/modules/net-lb-int/health-check.tf index 754ff6369f..4f5af03e79 100644 --- a/modules/net-lb-int/health-check.tf +++ b/modules/net-lb-int/health-check.tf @@ -18,7 +18,7 @@ locals { hc = ( - var.health_check == null ? null : var.health_check_config + var.health_check != null ? null : var.health_check_config ) hc_grpc = try(local.hc.grpc, null) != null hc_http = try(local.hc.http, null) != null diff --git a/modules/net-lb-proxy-int/health-check.tf b/modules/net-lb-proxy-int/health-check.tf index d27412cff9..5ec01c255e 100644 --- a/modules/net-lb-proxy-int/health-check.tf +++ b/modules/net-lb-proxy-int/health-check.tf @@ -18,7 +18,7 @@ locals { hc = ( - var.health_check == null ? null : var.health_check_config + var.health_check != null ? null : var.health_check_config ) hc_grpc = try(local.hc.grpc, null) != null hc_http = try(local.hc.http, null) != null