Skip to content

Commit

Permalink
Fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Dec 6, 2023
1 parent ad50c63 commit 0082417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/agent/cmd/enroll_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func (c *enrollCmd) daemonReloadWithBackoff(ctx context.Context) error {
attempt := i

c.log.Infof("Restarting agent daemon, attempt %d", attempt)
if err := c.daemonReload(ctx); err == nil {
if err := c.daemonReload(ctx); err != nil {
// If the context was cancelled, return early
if errors.Is(err, context.DeadlineExceeded) ||
errors.Is(err, context.Canceled) {
Expand Down

0 comments on commit 0082417

Please sign in to comment.