Skip to content

Commit

Permalink
AddError
Browse files Browse the repository at this point in the history
Co-authored-by: Ethan <[email protected]>
  • Loading branch information
aslilac and ethanndickson authored Nov 15, 2024
1 parent 2500b9c commit 26eab19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/provisioner_key_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (r *ProvisionerKeyResource) Read(ctx context.Context, req resource.ReadRequ

func (r *ProvisionerKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) {
// Provisioner keys are immutable, updating is always invalid.
resp.Diagnostics.Append(diag.NewErrorDiagnostic("invalid update", "terraform is attempting to update a resource which must be replaced"))
resp.Diagnostics.AddError("Invalid Update", "Terraform is attempting to update a resource which must be replaced")
}

func (r *ProvisionerKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) {
Expand Down

0 comments on commit 26eab19

Please sign in to comment.