Fix validation for filebrowser agent_name condition

pull/299/head
Muhammad Atif Ali 10 months ago
parent a2deabefa9
commit b1c13e1d08

@ -23,7 +23,7 @@ variable "agent_name" {
description = "The name of the main deployment. (Used to build the subpath for coder_app.)" description = "The name of the main deployment. (Used to build the subpath for coder_app.)"
default = "" default = ""
validation { validation {
# If subdomain is true, then agent_name must be set. # If subdomain is false, then agent_name must be set.
condition = var.subdomain || var.agent_name != "" condition = var.subdomain || var.agent_name != ""
error_message = "The agent_name must be set." error_message = "The agent_name must be set."
} }

Loading…
Cancel
Save