diff --git a/variables.tf b/variables.tf index 35d64e5..f0ad249 100644 --- a/variables.tf +++ b/variables.tf @@ -63,10 +63,6 @@ variable servers { condition = ! can(values(var.servers)[*].flags) || ! contains([for v in var.servers : can(tolist(v.flags))], false) error_message = "Field servers..flags must be a list of string." } - validation { - condition = ! can(values(var.servers)[*].annotations) || ! contains([for v in var.servers : can(tomap(v.annotations))], false) - error_message = "Field servers..annotations must be a list of string." - } validation { condition = ! can(values(var.servers)[*].annotations) || ! contains([for v in var.servers : can(tomap(v.annotations))], false) error_message = "Field servers..annotations must be a map of string." @@ -98,10 +94,6 @@ variable agents { condition = ! can(values(var.agents)[*].flags) || ! contains([for v in var.agents : can(tolist(v.flags))], false) error_message = "Field agents..flags must be a list of string." } - validation { - condition = ! can(values(var.agents)[*].annotations) || ! contains([for v in var.agents : can(tomap(v.annotations))], false) - error_message = "Field agents..annotations must be a list of string." - } validation { condition = ! can(values(var.agents)[*].annotations) || ! contains([for v in var.agents : can(tomap(v.annotations))], false) error_message = "Field agents..annotations must be a map of string."