Skip to content

Commit dffb916

Browse files
committed
fix: Cast NSG rule protocol for ICMP options comparison
Signed-off-by: Devon Crouse <[email protected]>
1 parent b44edce commit dffb916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/network/rules.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ resource "oci_core_network_security_group_security_rule" "oke" {
7979
}
8080

8181
dynamic "icmp_options" {
82-
for_each = each.value.protocol == local.icmp_protocol ? [1] : []
82+
for_each = tostring(each.value.protocol) == tostring(local.icmp_protocol) ? [1] : []
8383
content {
8484
type = 3
8585
code = 4

0 commit comments

Comments
 (0)