From 25e8ef1557be14f286c7f18a083f364bd095d709 Mon Sep 17 00:00:00 2001 From: Quentin Brosse Date: Thu, 28 Nov 2019 18:45:38 +0100 Subject: [PATCH] fix(baremetal): add Undelivered and Locked to terminalStatus --- api/baremetal/v1alpha1/server_utils.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/baremetal/v1alpha1/server_utils.go b/api/baremetal/v1alpha1/server_utils.go index d73841e80..af8008225 100644 --- a/api/baremetal/v1alpha1/server_utils.go +++ b/api/baremetal/v1alpha1/server_utils.go @@ -20,10 +20,12 @@ type WaitForServerRequest struct { func (s *API) WaitForServer(req *WaitForServerRequest) (*Server, scw.SdkError) { terminalStatus := map[ServerStatus]struct{}{ - ServerStatusReady: {}, - ServerStatusStopped: {}, - ServerStatusError: {}, - ServerStatusUnknown: {}, + ServerStatusReady: {}, + ServerStatusStopped: {}, + ServerStatusError: {}, + ServerStatusUndelivered: {}, + ServerStatusLocked: {}, + ServerStatusUnknown: {}, } installTerminalStatus := map[ServerInstallStatus]struct{}{