Skip to content

Commit

Permalink
Merge pull request #1504 from mlafeldt/atttempts
Browse files Browse the repository at this point in the history
Fix typo: atttempts
  • Loading branch information
dadgar authored Aug 2, 2016
2 parents 2df3b19 + b0b3e5e commit a78d219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/restarts.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (r *RestartTracker) handleStartError() (string, time.Duration) {
if r.count > r.policy.Attempts {
if r.policy.Mode == structs.RestartPolicyModeFail {
r.reason = fmt.Sprintf(
`Exceeded allowed atttempts %d in interval %v and mode is "fail"`,
`Exceeded allowed attempts %d in interval %v and mode is "fail"`,
r.policy.Attempts, r.policy.Interval)
return structs.TaskNotRestarting, 0
} else {
Expand All @@ -160,7 +160,7 @@ func (r *RestartTracker) handleWaitResult() (string, time.Duration) {
if r.count > r.policy.Attempts {
if r.policy.Mode == structs.RestartPolicyModeFail {
r.reason = fmt.Sprintf(
`Exceeded allowed atttempts %d in interval %v and mode is "fail"`,
`Exceeded allowed attempts %d in interval %v and mode is "fail"`,
r.policy.Attempts, r.policy.Interval)
return structs.TaskNotRestarting, 0
} else {
Expand Down

0 comments on commit a78d219

Please sign in to comment.