Skip to content

Commit

Permalink
fix: probe validation
Browse files Browse the repository at this point in the history
  • Loading branch information
gareda committed Aug 6, 2024
1 parent e7b032d commit 0eca66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

Expand Down

0 comments on commit 0eca66a

Please sign in to comment.