Skip to content

Commit

Permalink
Fix build error with go 1.15 (#634)
Browse files Browse the repository at this point in the history
This fixes a build error happening with the new go release, which seems
to be an actual bug.
  • Loading branch information
therve authored Aug 14, 2020
1 parent 3c900e2 commit 9b3c35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datadog/resource_datadog_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func resourceDatadogMonitorUpdate(d *schema.ResourceData, meta interface{}) erro
silencedList := m.Options.GetSilenced()
for _, scope := range unmutedScopes {
if _, ok := silencedList[scope]; ok {
delete(silencedList, string(silencedList[scope]))
delete(silencedList, scope)
}
}
if _, _, err = datadogClientV1.MonitorsApi.UpdateMonitor(authV1, i).Body(*m).Execute(); err != nil {
Expand Down

0 comments on commit 9b3c35b

Please sign in to comment.