Skip to content

Commit 77055a3

Browse files
authored
fix: fix the value passed to provider for disable_outbound_traffic_protection to consider use case when data lookup checks current default version (#455)
1 parent 4313656 commit 77055a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ locals {
5050
cluster_security_groups = var.attach_ibm_managed_security_group == true ? (var.custom_security_group_ids == null ? null : concat(["cluster"], var.custom_security_group_ids)) : (var.custom_security_group_ids == null ? null : var.custom_security_group_ids)
5151

5252
# for versions older than 4.15, this value must be null, or provider gives error
53-
disable_outbound_traffic_protection = local.ocp_version == "4.12_openshift" || local.ocp_version == "4.13_openshift" || local.ocp_version == "4.14_openshift" ? null : var.disable_outbound_traffic_protection
53+
disable_outbound_traffic_protection = startswith(local.ocp_version, "4.12") || startswith(local.ocp_version, "4.13") || startswith(local.ocp_version, "4.14") ? null : var.disable_outbound_traffic_protection
5454
}
5555

5656
# Lookup the current default kube version

0 commit comments

Comments
 (0)