Skip to content

Commit 6213ecc

Browse files
authored
🐛 Fix nil pointer dereference in actionRegistering logging (#1576)
1 parent 9a34837 commit 6213ecc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/services/baremetal/host/host.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ func (s *Service) actionRegistering(_ context.Context) actionResult {
619619
if s.scope.HetznerBareMetalHost.Spec.Status.LastUpdated != nil {
620620
timeSinceReboot = time.Since(s.scope.HetznerBareMetalHost.Spec.Status.LastUpdated.Time).String()
621621
}
622-
s.scope.Logger.Info("Could not reach rescue system. Will retry some seconds later.", "stdout", out.StdOut, "stderr", out.StdErr, "err", out.Err.Error(),
622+
623+
s.scope.Logger.Info("Could not reach rescue system. Will retry some seconds later.", "out", out.String(), "hostName", hostName,
623624
"isSSHTimeoutError", isSSHTimeoutError, "isSSHConnectionRefusedError", isSSHConnectionRefusedError, "timeSinceReboot", timeSinceReboot)
624625
return actionContinue{delay: 10 * time.Second}
625626
}

0 commit comments

Comments
 (0)