Skip to content

Commit

Permalink
Remove the SetId("") from deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Mar 26, 2019
1 parent 649908c commit d6979ca
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_alert_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,5 @@ func resourceNewRelicAlertChannelDelete(d *schema.ResourceData, meta interface{}
return err
}

d.SetId("")

return nil
}
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_alert_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,5 @@ func resourceNewRelicAlertConditionDelete(d *schema.ResourceData, meta interface
return err
}

d.SetId("")

return nil
}
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_alert_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,5 @@ func resourceNewRelicAlertPolicyDelete(d *schema.ResourceData, meta interface{})
return err
}

d.SetId("")

return nil
}
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_alert_policy_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,5 @@ func resourceNewRelicAlertPolicyChannelDelete(d *schema.ResourceData, meta inter
}
}

d.SetId("")

return nil
}
3 changes: 0 additions & 3 deletions newrelic/resource_newrelic_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,11 @@ func resourceNewRelicDashboardDelete(d *schema.ResourceData, meta interface{}) e

if err := client.DeleteDashboard(id); err != nil {
if err == newrelic.ErrNotFound {
d.SetId("")
return nil
}
return err
}

d.SetId("")

return nil
}

Expand Down
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_infra_alert_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ func resourceNewRelicInfraAlertConditionDelete(d *schema.ResourceData, meta inte
return err
}

d.SetId("")

return nil
}

Expand Down
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_nrql_alert_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,5 @@ func resourceNewRelicNrqlAlertConditionDelete(d *schema.ResourceData, meta inter
return err
}

d.SetId("")

return nil
}
2 changes: 0 additions & 2 deletions newrelic/resource_newrelic_synthetics_alert_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,5 @@ func resourceNewRelicSyntheticsAlertConditionDelete(d *schema.ResourceData, meta
return err
}

d.SetId("")

return nil
}
1 change: 0 additions & 1 deletion newrelic/resource_newrelic_synthetics_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,5 @@ func resourceNewRelicSyntheticsMonitorDelete(d *schema.ResourceData, meta interf
return err
}

d.SetId("")
return nil
}
1 change: 0 additions & 1 deletion newrelic/resource_newrelic_synthetics_monitor_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,5 @@ func resourceNewRelicSyntheticsMonitorScriptDelete(d *schema.ResourceData, meta
return err
}

d.SetId("")
return nil
}

0 comments on commit d6979ca

Please sign in to comment.