fix regex

pull/81/head
Muhammad Atif Ali 2 years ago
parent 8963d939ee
commit dc341a08c0
No known key found for this signature in database

@ -36,9 +36,9 @@ variable "vault_cli_version" {
type = string
description = "The version of Vault to install."
default = "latest"
# validate the version is in the format 0.0.0 or latest
# validate the version is in the format x.y.z or latest
validation {
condition = can(regex("^(latest|[0-9]+\\.[0-9]+\\.[0-9]+)$", var.vault_version))
condition = can(regex("^(latest|[0-9]+\\.[0-9]+\\.[0-9]+)$", var.vault_cli_version))
error_message = "Vault version must be in the format 0.0.0 or latest"
}
}

Loading…
Cancel
Save