Skip to content

Commit 5b36e82

Browse files
author
Quentin Brosse
authored
fix(baremetal): add Undelivered and Locked to terminalStatus (#260)
1 parent 052727e commit 5b36e82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

api/baremetal/v1alpha1/server_utils.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ type WaitForServerRequest struct {
2020
func (s *API) WaitForServer(req *WaitForServerRequest) (*Server, scw.SdkError) {
2121

2222
terminalStatus := map[ServerStatus]struct{}{
23-
ServerStatusReady: {},
24-
ServerStatusStopped: {},
25-
ServerStatusError: {},
26-
ServerStatusUnknown: {},
23+
ServerStatusReady: {},
24+
ServerStatusStopped: {},
25+
ServerStatusError: {},
26+
ServerStatusUndelivered: {},
27+
ServerStatusLocked: {},
28+
ServerStatusUnknown: {},
2729
}
2830

2931
installTerminalStatus := map[ServerInstallStatus]struct{}{

0 commit comments

Comments
 (0)