Skip to content

Commit efe18f2

Browse files
committed
Revert "refactor: replace conditional operator with coalesce in variables.tf"
This reverts commit 7434326.
1 parent 4305a5a commit efe18f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

autogen/main/variables.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ variable "node_pools_cgroup_mode" {
124124
"CGROUP_MODE_UNSPECIFIED",
125125
"CGROUP_MODE_V1",
126126
"CGROUP_MODE_V2"
127-
], coalesce(var.node_pools_cgroup_mode, ""))
127+
], var.node_pools_cgroup_mode != null ? var.node_pools_cgroup_mode : "")
128128
error_message = "The node_pools_cgroup_mode must be one of CGROUP_MODE_UNSPECIFIED, CGROUP_MODE_V1, or CGROUP_MODE_V2."
129129
}
130130
default = null

modules/beta-autopilot-private-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ variable "node_pools_cgroup_mode" {
123123
"CGROUP_MODE_UNSPECIFIED",
124124
"CGROUP_MODE_V1",
125125
"CGROUP_MODE_V2"
126-
], coalesce(var.node_pools_cgroup_mode, ""))
126+
], var.node_pools_cgroup_mode != null ? var.node_pools_cgroup_mode : "")
127127
error_message = "The node_pools_cgroup_mode must be one of CGROUP_MODE_UNSPECIFIED, CGROUP_MODE_V1, or CGROUP_MODE_V2."
128128
}
129129
default = null

modules/beta-autopilot-public-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ variable "node_pools_cgroup_mode" {
123123
"CGROUP_MODE_UNSPECIFIED",
124124
"CGROUP_MODE_V1",
125125
"CGROUP_MODE_V2"
126-
], coalesce(var.node_pools_cgroup_mode, ""))
126+
], var.node_pools_cgroup_mode != null ? var.node_pools_cgroup_mode : "")
127127
error_message = "The node_pools_cgroup_mode must be one of CGROUP_MODE_UNSPECIFIED, CGROUP_MODE_V1, or CGROUP_MODE_V2."
128128
}
129129
default = null

0 commit comments

Comments
 (0)