fix validation for telemetry

pull/42/head
Muhammad Atif Ali 2 years ago
parent 7daa749a98
commit 30706d2698
No known key found for this signature in database

@ -34,10 +34,11 @@ variable "log_path" {
variable "telemetry" {
type = string
description = "Telemetry options for vscode-server. Valid values are 'off', 'crash', 'error' or 'all'."
description = "Telemetry options for vscode-server."
default = "crash"
validation {
condition = var.telemetry == "off" || var.telemetry == "crash" || var.telemetry == "error" || var.telemetry == "all"
condition = var.telemetry == "off" || var.telemetry == "crash" || var.telemetry == "error" || var.telemetry == "all"
error_message = "Variable telemetry must be set to 'off', 'crash', 'error' or 'all'."
}
}

Loading…
Cancel
Save