Skip to content

Commit 2b47d75

Browse files
committed
also check 404
1 parent 902b0a9 commit 2b47d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/service/streamprocessor/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (r *streamProcessorRS) Delete(ctx context.Context, req resource.DeleteReque
265265
return
266266
}
267267
_, err := WaitStateTransition(ctx, params, connV2.StreamsApi, []string{InitiatingState, CreatingState, CreatedState, StartedState, StoppedState}, []string{DroppedState})
268-
if apiError, _ := admin.AsError(err); apiError.GetError() == http.StatusBadRequest {
268+
if apiError, _ := admin.AsError(err); apiError.GetError() == http.StatusBadRequest || apiError.GetError() == http.StatusNotFound {
269269
return // resource already deleted
270270
}
271271
if err != nil {

0 commit comments

Comments
 (0)