From 0eca66a5853c5b9e23eb217ab1eca9b49dfeae26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garrido=20S=C3=A1nchez?= Date: Tue, 6 Aug 2024 16:21:36 +0000 Subject: [PATCH] fix: probe validation --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 8a253e0..e1aff8f 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] == "" if probe.path != null]) + 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." }