From 79f3fd6712633233dee9c945319f2b7fd174e053 Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 11 Jan 2023 16:19:24 +0100 Subject: [PATCH] remove custom error (#85) Co-authored-by: Dean Oren --- .../internal/resources/data-services/instance/actions.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stackit/internal/resources/data-services/instance/actions.go b/stackit/internal/resources/data-services/instance/actions.go index 527631b4..bf10eb36 100644 --- a/stackit/internal/resources/data-services/instance/actions.go +++ b/stackit/internal/resources/data-services/instance/actions.go @@ -194,17 +194,11 @@ func (r Resource) Update(ctx context.Context, req resource.UpdateRequest, resp * return } - planID := plan.PlanID if err := r.applyClientResponse(ctx, &plan, newRes.JSON200); err != nil { resp.Diagnostics.AddError("failed to process client response", err.Error()) return } - if !plan.PlanID.Equal(planID) { - resp.Diagnostics.AddError("server returned wrong plan ID after update", fmt.Sprintf("expected plan ID %s but received %s", planID.ValueString(), plan.PlanID.ValueString())) - return - } - // update state diags := resp.State.Set(ctx, &plan) resp.Diagnostics.Append(diags...)