Skip to content

Commit

Permalink
Update cmd/vela-worker/register.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
  • Loading branch information
timhuynh94 and cognifloyd authored Oct 25, 2023
1 parent f48579c commit f3b1c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vela-worker/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (w *Worker) checkIn(config *library.Worker) (bool, string, error) {

tkn, _, err := w.VelaClient.Worker.RefreshAuth(config.GetHostname())
if err != nil {
// set to error as check in fails
// set to error when check in fails
w.updateWorkerStatus(config, constants.WorkerStatusError)
return false, "", fmt.Errorf("unable to refresh auth for worker %s on the server: %w", config.GetHostname(), err)
}
Expand Down

0 comments on commit f3b1c0c

Please # to comment.