Skip to content

Commit 41d1972

Browse files
authored
🌱 Avoid logging an error when NodeRef is empty (#2006)
* 🌱 Avoid logging an error when NodeRef is empty * removed log INFO.
1 parent ad7d370 commit 41d1972

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/services/baremetal/host/host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,11 +2044,11 @@ func (s *Service) actionProvisioned(ctx context.Context) actionResult {
20442044
// The machine would be remediated.
20452045
if machine.Status.NodeRef.Name == "" {
20462046
msg := "machine.Status.NodeRef.Name is empty"
2047-
s.scope.Error(errors.New(msg), "")
20482047

20492048
// Without looking at the node object we can't confirm whether a reboot completed, so that is fatal error.
20502049
// When no reboot is requested the boot ID is non-critical; requeue and wait for kubelet to populate it.
20512050
if rebootDesired {
2051+
s.scope.Error(errors.New(msg), "")
20522052
s.scope.HetznerBareMetalHost.SetError(infrav1.FatalError, msg)
20532053
return actionStop{}
20542054
}

0 commit comments

Comments
 (0)