Skip to content

Commit c74dd1f

Browse files
committed
remove setting permanent error.
1 parent cb977e6 commit c74dd1f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/services/baremetal/host/host.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -620,14 +620,6 @@ func (s *Service) actionRegistering(ctx context.Context) actionResult {
620620
return actionError{err: fmt.Errorf(errMsgFailedHandlingIncompleteBoot, err)}
621621
}
622622

623-
if !isSSHTimeoutError && !isSSHConnectionRefusedError {
624-
msg := fmt.Sprintf("expected rescue system, but found different hostname %q", hostName)
625-
record.Warn(s.scope.HetznerBareMetalHost, "RegisteringFailed", msg)
626-
ctrl.LoggerFrom(ctx).Error(errors.New("RegisteringFailed"), msg)
627-
s.scope.HetznerBareMetalHost.SetError(infrav1.PermanentError, msg)
628-
return actionStop{}
629-
}
630-
631623
timeSinceReboot := "unknown"
632624
if s.scope.HetznerBareMetalHost.Spec.Status.LastUpdated != nil {
633625
timeSinceReboot = time.Since(s.scope.HetznerBareMetalHost.Spec.Status.LastUpdated.Time).String()

0 commit comments

Comments
 (0)