Skip to content

Commit

Permalink
Replace contains by explicit or list in software_stack condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jan 19, 2024
1 parent 56301a5 commit 73ef426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ variable "software_stack" {
default = "alliance"
description = "Provider of scientific software environment"
validation {
condition = var.software_stack == null || contains(["alliance", "computecanada", "eessi", ""], var.software_stack)
condition = var.software_stack == null || var.software_stack == "alliance" || var.software_stack == "computecanada" || var.software_stack == "eessi" || var.software_stack == ""
error_message = "software_stack can be one of these value: \"alliance\", \"computecanada\", \"eessi\" or \"\""
}
}
Expand Down

0 comments on commit 73ef426

Please sign in to comment.