Skip to content

Commit 87ed06e

Browse files
author
Miguel Hernández
authored
[TF-15070] Fix production_type validation (#159)
* fix production_type assertion * rollback prop change name
1 parent 8f1ca5b commit 87ed06e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/settings/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ variable "custom_agent_image_tag" {
4848
}
4949

5050
variable "production_type" {
51-
default = null
51+
default = "disk"
5252
type = string
5353
description = "Where Terraform Enterprise application data will be stored. Valid values are `external`, `disk`, `active-active` or `null`. Choose `external` when storing application data in an external object storage service and database. Choose `disk` when storing application data in a directory on the Terraform Enterprise instance itself. Close `active-active` when deploying more than 1 node. Leave it `null` when you want Terraform Enterprise to use its own default."
5454

5555
validation {
56-
condition = contains(["external", "disk", "active-active", null], var.production_type, "The production_type must be 'external', 'disk', or omitted.")
56+
condition = contains(["external", "disk", "active-active"], var.production_type)
5757
error_message = "The production_type must be 'external', 'disk', `active-active`, or omitted."
5858
}
5959
}

0 commit comments

Comments
 (0)