Skip to content

Commit

Permalink
remove the function to remove resource state (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: sivchari <shibuuuu5@gmail.com>
  • Loading branch information
sivchari authored Jan 6, 2025
1 parent 4e1bfe5 commit 5542a04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/provider/resource_piped.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (p *PipedResource) ImportState(ctx context.Context, req resource.ImportStat
getReq := &api.GetPipedRequest{
PipedId: req.ID,
}

getResp, err := p.c.GetPiped(ctx, getReq)
if err != nil {
resp.Diagnostics.AddError(
Expand Down Expand Up @@ -215,8 +216,6 @@ func (p *PipedResource) Delete(ctx context.Context, req resource.DeleteRequest,
)
return
}

resp.State.RemoveResource(ctx)
}

func (p *PipedResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse) {
Expand Down

0 comments on commit 5542a04

Please sign in to comment.