Skip to content

Commit 9bf8bf6

Browse files
committed
removed enabled check
1 parent 5f374ad commit 9bf8bf6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

infrastructure/modules/application-insights-availability-test/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resource "azurerm_application_insights_standard_web_test" "this" {
2424

2525
# SSL validation rules
2626
dynamic "validation_rules" {
27-
for_each = try(var.ssl_validation.enabled, false) ? [1] : []
27+
for_each = var.ssl_validation != null ? [1] : []
2828
content {
2929
expected_status_code = var.ssl_validation.expected_status_code
3030
ssl_check_enabled = var.ssl_validation.ssl_check_enabled

infrastructure/modules/application-insights-availability-test/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ variable "ssl_validation" {
105105

106106
variable "alert" {
107107
type = object({
108-
description = optional(string, "Availability test alert")
109-
frequency = optional(string, "PT1M")
110-
window_size = optional(string, "PT5M")
111-
auto_mitigate = optional(bool, true)
108+
description = optional(string, "Availability test alert")
109+
frequency = optional(string, "PT1M")
110+
window_size = optional(string, "PT5M")
111+
auto_mitigate = optional(bool, true)
112112
})
113113

114114
validation {

0 commit comments

Comments
 (0)