From f5a5b4b3fe7c8c931ec56b3a1db6f70e579af557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garrido=20S=C3=A1nchez?= Date: Tue, 6 Aug 2024 16:32:30 +0000 Subject: [PATCH] fix: probe validation condition --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index e1aff8f..4b64a05 100644 --- a/variables.tf +++ b/variables.tf @@ -209,7 +209,7 @@ variable "probes" { } validation { - condition = alltrue([for probe in var.probes : length(split(probe.path, "/")) >= 2 && split("/", probe.path)[0] == ""]) + condition = alltrue([for probe in var.probes : length(split("/", probe.path)) >= 2 && split("/", probe.path)[0] == ""]) error_message = "The path must be a valid URL path." }