Skip to content

Commit 75bf115

Browse files
authored
fix(baremetal): check that install status is not nil before installwait (#1073)
1 parent 869fd18 commit 75bf115

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/namespaces/baremetal/v1/custom_server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ func serverWaitCommand() *core.Command {
5757
Details: fmt.Sprintf("server %s is in %s status", server.ID, server.Status),
5858
}
5959
}
60+
if server.Install == nil {
61+
return server, nil
62+
}
63+
6064
logger.Debugf("server reached a stable delivery status. Will now starting to wait for server to reach a stable installation status")
6165
server, err = api.WaitForServerInstall(&baremetal.WaitForServerInstallRequest{
6266
ServerID: argsI.(*serverWaitRequest).ServerID,

0 commit comments

Comments
 (0)