Skip to content

Commit

Permalink
fix(gcp_integrations): add missing error handling to the resource ne…
Browse files Browse the repository at this point in the history
…wrelic_cloud_gcp_integrations (#2657)
  • Loading branch information
abasha1234 authored May 8, 2024
1 parent 4f7b20e commit 284fe64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newrelic/resource_newrelic_cloud_gcp_integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func resourceNewrelicCloudGcpIntegrationsCreate(ctx context.Context, d *schema.R
cloudGcpIntegrationinputs, _ := expandCloudGcpIntegrationsinputs(d)
gcpIntegrationspayload, err := client.Cloud.CloudConfigureIntegrationWithContext(ctx, accountID, cloudGcpIntegrationinputs)
if err != nil {
diag.FromErr(err)
return diag.FromErr(err)
}
var diags diag.Diagnostics
if len(gcpIntegrationspayload.Errors) > 0 {
Expand Down Expand Up @@ -1203,7 +1203,7 @@ func resourceNewrelicCloudGcpIntegrationsRead(ctx context.Context, d *schema.Res
d.SetId("")
return nil
}
diag.FromErr(err)
return diag.FromErr(err)
}
flattenCloudGcpLinkedAccount(d, linkedAccount)
return nil
Expand Down

0 comments on commit 284fe64

Please sign in to comment.