Skip to content

Commit

Permalink
Don't need to modify the plan if the resource is being deleted (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: no value <[email protected]>
  • Loading branch information
andyleap and andyleap authored Jul 24, 2024
1 parent 68ebb24 commit d96031a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/provider/multi_rotate_set_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ func (r *MultiRotateSet) Read(ctx context.Context, req resource.ReadRequest, res
func (r *MultiRotateSet) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse) {
var data MultiRotateSetModel

if req.Plan.Raw.IsNull() {
return
}

resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...)

if resp.Diagnostics.HasError() {
Expand Down

0 comments on commit d96031a

Please sign in to comment.