Skip to content

Commit

Permalink
Fix internal field diff in monitoring uptime check (hashicorp#944)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and rileykarson committed Jul 15, 2019
1 parent df3582c commit bd45b37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google-beta/resource_monitoring_uptime_check_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ func resourceMonitoringUptimeCheckConfigRead(d *schema.ResourceData, meta interf
return handleNotFoundError(err, d, fmt.Sprintf("MonitoringUptimeCheckConfig %q", d.Id()))
}

res, err = resourceMonitoringUptimeCheckConfigDecoder(d, meta, res)
if err != nil {
return err
}

project, err := getProject(d, config)
if err != nil {
return err
Expand Down Expand Up @@ -955,3 +960,8 @@ func expandMonitoringUptimeCheckConfigMonitoredResourceLabels(v interface{}, d T
}
return m, nil
}

func resourceMonitoringUptimeCheckConfigDecoder(d *schema.ResourceData, meta interface{}, res map[string]interface{}) (map[string]interface{}, error) {
d.Set("internal_checkers", nil)
return res, nil
}

0 comments on commit bd45b37

Please sign in to comment.