Skip to content

Commit e4b4c55

Browse files
committed
call cleanup.HandleCreateTimeout if delete is available
1 parent e03965d commit e4b4c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/common/autogen/handle_operations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func HandleCreate(ctx context.Context, req HandleCreateReq) {
7373
return
7474
}
7575
errWait := handleWaitCreateUpdate(ctx, req.Wait, req.Client, req.Plan)
76-
if errWait != nil && req.DeleteCallParams != nil {
76+
if req.DeleteCallParams != nil {
7777
// Handle timeout with cleanup if delete_on_create_timeout is enabled. Doesn't support Delete with StaticRequestBody.
7878
errWait = cleanup.HandleCreateTimeout(req.DeleteOnCreateTimeout, errWait, func(ctxCleanup context.Context) error {
7979
bodyResp, apiResp, err := callAPIWithoutBody(ctxCleanup, req.Client, req.DeleteCallParams)

0 commit comments

Comments
 (0)