From 9031771856a868406c385f540f83998c796673b9 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Fri, 23 Oct 2020 12:00:53 -0700 Subject: [PATCH] Apply dsf to google_compute_health_check port value when no portspec if specified --- templates/terraform/constants/health_check.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/terraform/constants/health_check.erb b/templates/terraform/constants/health_check.erb index 07494b3fa2f2..fd79330386f8 100644 --- a/templates/terraform/constants/health_check.erb +++ b/templates/terraform/constants/health_check.erb @@ -72,7 +72,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 } }