Skip to content

Commit 93138ec

Browse files
compute: used net.IP.Equal vs bytes.Equal for IP comparison (#12279) (#3059)
[upstream:43b84b7308128de70332e50ff85c5f3713f66c1b] Signed-off-by: Modular Magician <[email protected]>
1 parent 791e179 commit 93138ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tfplan2cai/converters/google/resources/services/compute/compute_forwarding_rule.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package compute
1616

1717
import (
18-
"bytes"
1918
"context"
2019
"fmt"
2120
"log"
@@ -83,7 +82,7 @@ func InternalIpDiffSuppress(_, old, new string, _ *schema.ResourceData) bool {
8382
addr_equality = true
8483
} else {
8584
// old and new are IP addresses
86-
addr_equality = bytes.Equal(addr_old, addr_new)
85+
addr_equality = net.IP.Equal(addr_old, addr_new)
8786
}
8887
}
8988

0 commit comments

Comments
 (0)