Skip to content

Commit

Permalink
Apply dsf to google_compute_health_check port value with no portspec …
Browse files Browse the repository at this point in the history
…(#4143) (#561)

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Oct 23, 2020
1 parent 58fa404 commit dcaa125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/compute_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit dcaa125

Please sign in to comment.