You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variable "host_labels" {
description = "Host labels to assign host to control plane "
type = list(string)
default = null
validation {
condition = can([for s in var.host_labels : regex("^[a-zA-Z0-9-:]+$", s)])
error_message = "Label must be of the form `key:value`."
}
}
The text was updated successfully, but these errors were encountered:
ocofaigh
transferred this issue from terraform-ibm-modules/terraform-ibm-satellite
Jul 8, 2022
ocofaigh
transferred this issue from terraform-ibm-modules/terraform-ibm-issue-tracker
Aug 18, 2023
Issue:
When attempting to use labels that include dashes, host_labels validation fails.
https://github.com/terraform-ibm-modules/terraform-ibm-satellite/blob/main/modules/host/variables.tf#L12
Solution
Support dashes:
The text was updated successfully, but these errors were encountered: