Skip to content

Commit

Permalink
Fix 'testAccIndex_disappears'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Oct 16, 2024
1 parent 145fb7e commit 91451a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/resourceexplorer2/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ func (r *indexResource) Delete(ctx context.Context, request resource.DeleteReque
Arn: fwflex.StringFromFramework(ctx, data.ARN),
})

if errs.IsAErrorMessageContains[*awstypes.ValidationException](err, "The index is DELETED") {
return
}

if err != nil {
response.Diagnostics.AddError(fmt.Sprintf("deleting Resource Explorer Index (%s)", data.ID.ValueString()), err.Error())

Expand Down

0 comments on commit 91451a8

Please sign in to comment.