Skip to content

Commit

Permalink
fix: remove useless validation
Browse files Browse the repository at this point in the history
  • Loading branch information
xunleii committed May 30, 2020
1 parent 8820b01 commit c70ef23
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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.<name>.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.<name>.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.<name>.annotations must be a map of string."
Expand Down Expand Up @@ -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.<name>.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.<name>.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.<name>.annotations must be a map of string."
Expand Down

0 comments on commit c70ef23

Please sign in to comment.