Merge pull request #1504 from mlafeldt/atttempts

Fix typo: atttempts
This commit is contained in:
Alex Dadgar
2016-08-02 10:05:31 -07:00
committed by GitHub

View File

@@ -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 {
@@ -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 {