Skip to content

Commit 1217476

Browse files
hyderdevoncrouse
authored andcommitted
fix: removed redundant check
Signed-off-by: Ali Mukadam <[email protected]>
1 parent ab30619 commit 1217476

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

modules/network/rules.tf

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,12 @@ resource "oci_core_network_security_group_security_rule" "oke" {
134134
contains(var.control_plane_allowed_cidrs, local.anywhere),
135135
]),
136136

137-
# TCP ingress to internal load balancer from anywhere has been configured explicitly
138-
alltrue([
139-
contains(keys(var.allow_rules_internal_lb), each.key),
140-
]),
137+
# TCP ingress to internal load balancer from anywhere has been configured explicitly
138+
contains(keys(var.allow_rules_internal_lb), each.key),
141139

142140
# TCP ingress to public load balancer from anywhere has been configured explicitly
143-
alltrue([
144-
contains(keys(var.allow_rules_public_lb), each.key),
145-
]),
141+
contains(keys(var.allow_rules_public_lb), each.key),
142+
146143
])
147144
error_message = "Unexpected open ingress rule: ${each.key}"
148145
}

0 commit comments

Comments
 (0)