From cae43e81aafd9991796936c2f39368f91a5cd08a Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 23 Oct 2020 21:37:25 +0000 Subject: [PATCH] Apply dsf to google_compute_health_check port value with no portspec (#4143) Signed-off-by: Modular Magician --- google/compute_health_check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/compute_health_check.go b/google/compute_health_check.go index ddcb3b75b..bb73d9301 100644 --- a/google/compute_health_check.go +++ b/google/compute_health_check.go @@ -98,7 +98,7 @@ func portDiffSuppress(k, old, new string, d *schema.ResourceData) bool { newPort, _ := strconv.Atoi(new) portSpec := d.Get(b[0] + ".0.port_specification") - if int64(oldPort) == defaultPort && newPort == 0 && portSpec == "USE_FIXED_PORT" { + if int64(oldPort) == defaultPort && newPort == 0 && (portSpec == "USE_FIXED_PORT" || portSpec == "") { return true } }