From c938cd8aad2b98ffdef09e0580c09bb0fb01e0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Fri, 5 Jun 2020 10:52:12 +0200 Subject: [PATCH] fix(baremetal): check that install status is not nil before installwait --- internal/namespaces/baremetal/v1/custom_server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/namespaces/baremetal/v1/custom_server.go b/internal/namespaces/baremetal/v1/custom_server.go index 58911a91ec..ab7f4f7616 100644 --- a/internal/namespaces/baremetal/v1/custom_server.go +++ b/internal/namespaces/baremetal/v1/custom_server.go @@ -57,6 +57,10 @@ func serverWaitCommand() *core.Command { Details: fmt.Sprintf("server %s is in %s status", server.ID, server.Status), } } + if server.Install == nil { + return server, nil + } + logger.Debugf("server reached a stable delivery status. Will now starting to wait for server to reach a stable installation status") server, err = api.WaitForServerInstall(&baremetal.WaitForServerInstallRequest{ ServerID: argsI.(*serverWaitRequest).ServerID,