From b0b3e5e1f6ac57618b2f7cc7639354e718019a9b Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Tue, 2 Aug 2016 18:11:03 +0200 Subject: [PATCH] Fix typo: atttempts --- client/restarts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/restarts.go b/client/restarts.go index e45f135f7..3fbffc4e0 100644 --- a/client/restarts.go +++ b/client/restarts.go @@ -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 {