Skip to content

Commit d96031a

Browse files
authored
Don't need to modify the plan if the resource is being deleted (#3)
Co-authored-by: no value <[email protected]>
1 parent 68ebb24 commit d96031a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/provider/multi_rotate_set_resource.go

+4
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ func (r *MultiRotateSet) Read(ctx context.Context, req resource.ReadRequest, res
176176
func (r *MultiRotateSet) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse) {
177177
var data MultiRotateSetModel
178178

179+
if req.Plan.Raw.IsNull() {
180+
return
181+
}
182+
179183
resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...)
180184

181185
if resp.Diagnostics.HasError() {

0 commit comments

Comments
 (0)