Skip to content

Commit

Permalink
rephrased the remediateWaiting event message
Browse files Browse the repository at this point in the history
Signed-off-by: Aniruddha Basak <[email protected]>
  • Loading branch information
aniruddha2000 committed Oct 18, 2023
1 parent c9d3614 commit 8b06fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/services/baremetal/remediation/remediation.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (s *Service) handlePhaseWaiting(ctx context.Context) (res reconcile.Result,
record.Warn(s.scope.BareMetalRemediation, "FailedSettingConditionOnMachine", err.Error())
return res, err
}
record.Event(s.scope.BareMetalRemediation, "SetOwnerRemediatedCondition", "exit remediation because owner remediated condition was set on machine")
record.Event(s.scope.BareMetalRemediation, "SetOwnerRemediatedCondition", "because retryLimit is reached and reboot timed out")

return res, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/hcloud/remediation/remediation.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (s *Service) handlePhaseWaiting(ctx context.Context) (res reconcile.Result,
record.Warn(s.scope.HCloudRemediation, "FailedSettingConditionOnMachine", err.Error())
return res, fmt.Errorf("failed to set conditions on CAPI machine: %w", err)
}
record.Event(s.scope.HCloudRemediation, "SetOwnerRemediatedCondition", "exit remediation because owner remediated condition was set on machine")
record.Event(s.scope.HCloudRemediation, "SetOwnerRemediatedCondition", "exit remediation because because retryLimit is reached and reboot timed out")

return res, nil
}
Expand Down

0 comments on commit 8b06fdf

Please sign in to comment.