summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-01-29 14:58:19 +0000
committerGitHub <noreply@github.com>2018-01-29 14:58:19 +0000
commit801a36374e38ee9110270f691da3e4d49bcc2464 (patch)
treee4c2e55a03eb10c9789e4db887c4695eec5100c3
parent96edf6fa02346c666d64041f3af52d54ba4ec9ad (diff)
parente083ff05a4a7f741b721cfa657085d27ab30e0f7 (diff)
downloadchef-801a36374e38ee9110270f691da3e4d49bcc2464.tar.gz
Merge pull request #6802 from chef/attempts
Use attempt or attempts in the retries logging
-rw-r--r--lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index 65c2e51cf2..ac1146a647 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -591,7 +591,7 @@ class Chef
elsif remaining_retries > 0
events.resource_failed_retriable(self, action, remaining_retries, e)
remaining_retries -= 1
- Chef::Log.info("Retrying execution of #{self}, #{remaining_retries} attempt(s) left")
+ Chef::Log.info("Retrying execution of #{self}, #{remaining_retries} attempt#{"s" if remaining_retries > 1} left")
sleep retry_delay
retry
else