Skip to content

Commit 4e2a3dc

Browse files
tidy
1 parent d7219d6 commit 4e2a3dc

File tree

1 file changed

+11
-11
lines changed
  • infrastructure/modules/application-gateway

1 file changed

+11
-11
lines changed

infrastructure/modules/application-gateway/main.tf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ resource "azurerm_application_gateway" "this" {
8383
unhealthy_threshold = probe.value.unhealthy_threshold
8484

8585
dynamic "match" {
86-
for_each = probe.value.match != null ? [probe.value.match] : []
86+
for_each = probe.value.match != null ? [1] : []
8787

8888
content {
89-
status_code = match.value.status_code
90-
body = match.value.body
89+
status_code = probe.value.match.status_code
90+
body = probe.value.match.body
9191
}
9292
}
9393
}
@@ -121,11 +121,11 @@ resource "azurerm_application_gateway" "this" {
121121
trusted_root_certificate_names = backend_http_settings.value.trusted_root_certificate_names
122122

123123
dynamic "connection_draining" {
124-
for_each = backend_http_settings.value.connection_draining != null ? [backend_http_settings.value.connection_draining] : []
124+
for_each = backend_http_settings.value.connection_draining != null ? [1] : []
125125

126126
content {
127-
enabled = connection_draining.value.enabled
128-
drain_timeout_sec = connection_draining.value.drain_timeout_sec
127+
enabled = backend_http_settings.value.connection_draining.enabled
128+
drain_timeout_sec = backend_http_settings.value.connection_draining.drain_timeout_sec
129129
}
130130
}
131131
}
@@ -205,13 +205,13 @@ resource "azurerm_application_gateway" "this" {
205205
}
206206

207207
dynamic "url" {
208-
for_each = rewrite_rule.value.url != null ? [rewrite_rule.value.url] : []
208+
for_each = rewrite_rule.value.url != null ? [1] : []
209209

210210
content {
211-
path = url.value.path
212-
query_string = url.value.query_string
213-
components = url.value.components
214-
reroute = url.value.reroute
211+
path = rewrite_rule.value.url.path
212+
query_string = rewrite_rule.value.url.query_string
213+
components = rewrite_rule.value.url.components
214+
reroute = rewrite_rule.value.url.reroute
215215
}
216216
}
217217
}

0 commit comments

Comments
 (0)