Skip to content

Commit fd6e1e6

Browse files
committed
feat(git): add missing error status codes
relates to STACKITSDK-373
1 parent 3496a08 commit fd6e1e6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

services/git/v1betaapi/wait/wait.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package wait
33
import (
44
"context"
55
"errors"
6+
"net/http"
67
"time"
78

89
"github.com/stackitcloud/stackit-sdk-go/core/wait"
@@ -44,8 +45,9 @@ func DeleteGitInstanceWaitHandler(ctx context.Context, client git.DefaultAPI, pr
4445
}
4546
return instance.State, nil
4647
},
47-
ActiveState: []string{},
48-
ErrorState: []string{INSTANCESTATE_ERROR},
48+
ActiveState: []string{},
49+
ErrorState: []string{INSTANCESTATE_ERROR},
50+
DeleteHttpErrorStatusCodes: []int{http.StatusNotFound},
4951
}
5052
handler := wait.New(waitConfig.Wait())
5153
handler.SetTimeout(10 * time.Minute)

0 commit comments

Comments
 (0)